| 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@f43a0e5ff2bd294095638e18286ca9a3d1956744 |
| - 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 |