| name: Dart CI |
| |
| on: |
| schedule: |
| # “At 00:00 (UTC) on Sunday.” |
| - cron: '0 0 * * 0' |
| push: |
| branches: [ master ] |
| pull_request: |
| branches: [ master ] |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| |
| strategy: |
| matrix: |
| os: [ubuntu-latest] |
| sdk: [3.2, dev] |
| steps: |
| # These are the latest versions of the github actions; dependabot will |
| # send PRs to keep these up-to-date. |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 |
| - uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30 |
| |
| - name: Install dependencies |
| run: dart pub get |
| |
| - name: Verify formatting |
| run: dart format --output=none --set-exit-if-changed . |
| |
| - name: Analyze project source |
| run: dart analyze --fatal-infos |
| |
| - name: Run tests |
| run: dart test |