Skip to content

Commit

Permalink
Added coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 16, 2024
1 parent fa12b7b commit 7fa041b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_call:

concurrency:
group: ${{ github.head_ref }}
group: ${{ github.head_ref || github.run_id}}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -93,11 +93,19 @@ jobs:
run: flutter pub run build_runner build
- name: Run analyzer
run: flutter analyze
- name: Install coverage tools
run: flutter pub global activate coverage
- name: Run tests
run: flutter test
- name: Run integration tests
if: ${{ steps.extract_branch.outputs.branch == 'dev' }}
run: flutter test integration_test -d macos
run: flutter test integration_test --coverage -d macos
- name: Upload Coverage to CodeCov
if: ${{ steps.extract_branch.outputs.branch == 'dev' }}
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage/lcov.info

android-linux-build:
name: 'Build Android + Linux'
Expand Down

0 comments on commit 7fa041b

Please sign in to comment.