rev to 3.0.0 #310
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: CI | |
on: | |
# Run on PRs and pushes to the default branch. | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: "0 0 * * 0" | |
env: | |
PUB_ENVIRONMENT: bot.github | |
jobs: | |
# Check formatting, static analysis, and run tests. | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
sdk: [3.2, stable, dev] | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d | |
with: | |
sdk: ${{ matrix.sdk }} | |
- run: dart pub get | |
- run: dart analyze --fatal-infos | |
- run: dart format --output=none --set-exit-if-changed . | |
if: ${{ matrix.sdk == 'stable' }} | |
- run: dart test --platform vm | |
- run: dart test --platform chrome | |
- run: dart test --platform chrome --compiler dart2wasm | |
# Run analysis against the oldest supported pub constraints. | |
downgrade: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d | |
- run: dart pub downgrade | |
- run: dart analyze --fatal-infos |