Skip to content

chore(deps): bump actions/checkout from 4.1.6 to 4.1.7 (#65) #101

chore(deps): bump actions/checkout from 4.1.6 to 4.1.7 (#65)

chore(deps): bump actions/checkout from 4.1.6 to 4.1.7 (#65) #101

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/checkout@v4.1.7
- name: Setup Dart
uses: dart-lang/setup-dart@v1.6.0
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/very_good_coverage@v3.0.0
with:
min_coverage: 95
exclude: "**/*.g.dart"
- name: Upload Code Coverage
uses: codecov/codecov-action@v4.4.1
with:
file: ./coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}