-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (41 loc) · 1.4 KB
/
main.yaml
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
name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
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:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- name: Build and Test Core
working-directory: packages/lite_ref_core
run: |
flutter pub get
flutter analyze
flutter test --coverage
- name: Build and Test Flutter
working-directory: packages/lite_ref
run: |
flutter pub get
flutter analyze
flutter test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./packages/lite_ref/coverage/lcov.info
flags: unittests