| name: package:html |
| |
| on: |
| # Run on PRs and pushes to the default branch. |
| push: |
| branches: [ main ] |
| paths: |
| - '.github/workflows/html.yaml' |
| - 'pkgs/html/**' |
| pull_request: |
| branches: [ main ] |
| paths: |
| - '.github/workflows/html.yaml' |
| - 'pkgs/html/**' |
| schedule: |
| - cron: "0 0 * * 0" |
| |
| defaults: |
| run: |
| working-directory: pkgs/html/ |
| |
| jobs: |
| analyze: |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| sdk: [stable, dev] |
| steps: |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c |
| with: |
| sdk: ${{ matrix.sdk }} |
| - id: install |
| run: dart pub get |
| - run: dart format --output=none --set-exit-if-changed . |
| if: steps.install.outcome == 'success' |
| - run: dart analyze --fatal-infos |
| if: steps.install.outcome == 'success' |
| |
| test: |
| needs: analyze |
| runs-on: ${{ matrix.os }} |
| strategy: |
| fail-fast: false |
| matrix: |
| os: [ubuntu-latest] |
| sdk: [3.2, stable, dev] |
| steps: |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c |
| with: |
| sdk: ${{ matrix.sdk }} |
| - id: install |
| run: dart pub get |
| - run: dart test --platform vm |
| if: steps.install.outcome == 'success' |
| - run: dart test --platform chrome |
| if: steps.install.outcome == 'success' |