Skip to content

chore(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 #116

chore(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1

chore(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 #116

Workflow file for this run

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 }}