Skip to content

Build, Test & Lint #1106

Build, Test & Lint

Build, Test & Lint #1106

Workflow file for this run

name: Build, Test & Lint
on:
pull_request:
push:
branches: [main]
schedule:
- cron: 0 4 * * 1
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [stable, beta, dev]
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- run: dart pub get
- run: dart test
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart pub global activate coverage ^1.0.0
- run: dart pub global run coverage:test_with_coverage
- uses: codecov/codecov-action@v3
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [stable, beta, dev]
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- run: dart pub get
- run: dart analyze