chore(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 #116
Workflow file for this run
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: tests | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "lib/**" | |
- "test/**" | |
- "example/**" | |
- "pubspec.yaml" | |
- ".github/workflows/test.yaml" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "lib/**" | |
- "test/**" | |
- "example/**" | |
- "pubspec.yaml" | |
- ".github/workflows/test.yaml" | |
jobs: | |
test: | |
name: 🧪 Test | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | |
timeout-minutes: 10 | |
steps: | |
- name: Checks-out repository | |
uses: actions/[email protected] | |
- name: Setup Dart | |
uses: dart-lang/[email protected] | |
with: | |
sdk: '2.17.0' | |
- name: Install Dependencies | |
run: dart pub get | |
- name: Run Tests | |
run: | | |
dart test --coverage=coverage | |
dart run coverage:format_coverage -l -i coverage -o coverage/lcov.info --report-on=lib | |
- name: Check Code Coverage | |
uses: VeryGoodOpenSource/[email protected] | |
with: | |
min_coverage: 95 | |
exclude: "**/*.g.dart" | |
- name: Upload Code Coverage | |
uses: codecov/[email protected] | |
with: | |
file: ./coverage/lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} |