| name: package:api_summary | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/api_summary.yaml' | |
| - 'pkgs/api_summary/**' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/api_summary.yaml' | |
| - 'pkgs/api_summary/**' | |
| schedule: | |
| - cron: '0 0 * * 0' # weekly | |
| defaults: | |
| run: | |
| working-directory: pkgs/api_summary | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sdk: ['3.12', dev] | |
| include: | |
| - sdk: dev | |
| check-formatting: true | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| - uses: dart-lang/setup-dart@7654d458321ee25acccccfdb86cd48bd95768ff1 | |
| with: | |
| sdk: ${{matrix.sdk}} | |
| - run: dart pub get | |
| - run: dart analyze --fatal-infos | |
| - run: dart format --output=none --set-exit-if-changed . | |
| if: ${{matrix.check-formatting}} | |
| - run: dart test |