Skip to content

test

test #102

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
sdk:
- 3.0.0
- stable
- dev
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install Dependencies
run: dart pub get
- name: Format
run: dart format --output=none --set-exit-if-changed .
- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings .
- name: Run Tests
run: |
dart pub global activate coverage
dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}