fix: Avoid concurrency issue when multiple requests are made with the… #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dart codecov | |
on: | |
pull_request_target: | |
push: | |
branches: | |
- main | |
jobs: | |
check_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run test coverage | |
run: | | |
dart pub global activate coverage 1.5.0 | |
dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib | |
- uses: codecov/codecov-action@v3 | |
with: | |
verbose: true | |
files: ./coverage/lcov.info | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |