| name: package:platform | |
| permissions: | |
| contents: read | |
| on: | |
| # Run CI on pushes to the main branch, and on PRs against main. | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/platform.yaml' | |
| - 'pkgs/platform/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/platform.yaml' | |
| - 'pkgs/platform/**' | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| defaults: | |
| run: | |
| working-directory: pkgs/platform/ | |
| jobs: | |
| correctness: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| - uses: dart-lang/setup-dart@6afc89df92d6eb3834022f73cd65adc8cdfcb92d | |
| with: | |
| sdk: dev | |
| - name: Install dependencies | |
| run: dart pub upgrade | |
| - name: Verify formatting | |
| run: dart format --output=none --set-exit-if-changed . | |
| - name: Analyze project source | |
| run: dart analyze --fatal-infos | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| sdk: [stable, beta, dev] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| - uses: dart-lang/setup-dart@6afc89df92d6eb3834022f73cd65adc8cdfcb92d | |
| with: | |
| sdk: ${{ matrix.sdk }} | |
| - name: Install dependencies | |
| run: dart pub upgrade | |
| - name: Run Tests | |
| run: dart test |