-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (43 loc) · 1.54 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Dart Test
on:
workflow_dispatch:
# push:
# branches: [ "main" ]
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
# spell-check:
# uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
# with:
# includes: "*.md"
# modified_files_only: true
test:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Build and Test Core
working-directory: ./packages/state_beacon_core
run: |
flutter pub get
flutter analyze
flutter test --coverage
- name: Build and Test Flutter
working-directory: ./packages/state_beacon
run: |
flutter pub get
flutter analyze
flutter test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./packages/state_beacon_core/coverage/lcov.info
flags: unittests