| name: Scripts CI |
| |
| on: |
| push: |
| branches: [ main ] |
| paths: |
| - 'scripts/**' |
| pull_request: |
| branches: [ main ] |
| paths: |
| - 'scripts/**' |
| schedule: |
| - cron: "0 0 * * 0" |
| |
| defaults: |
| run: |
| working-directory: scripts |
| |
| env: |
| PUB_ENVIRONMENT: bot.github |
| |
| jobs: |
| analyze-and-test: |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 |
| - id: install |
| name: Install dependencies |
| run: dart pub get |
| - name: Check formatting |
| run: dart format --output=none --set-exit-if-changed . |
| if: always() && steps.install.outcome == 'success' |
| - name: Analyze code |
| run: dart analyze --fatal-infos |
| if: always() && steps.install.outcome == 'success' |
| - name: Run VM tests |
| run: dart test --platform vm |
| if: always() && steps.install.outcome == 'success' |