| name: Dart |
| |
| on: |
| pull_request: |
| push: |
| branches: |
| - master |
| schedule: |
| # “At 00:00 (UTC) on Sunday.” |
| - cron: '0 0 * * 0' |
| |
| env: |
| PUB_ENVIRONMENT: bot.github |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| sdk: [dev, stable] |
| |
| steps: |
| - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 |
| - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f |
| with: |
| sdk: ${{ matrix.sdk }} |
| |
| - name: pub get |
| run: dart pub get |
| |
| - name: dart format |
| run: dart format --output=none --set-exit-if-changed . |
| |
| - name: dart analyze |
| run: dart analyze |
| |
| - name: dart test |
| run: dart test |