package:dart_results_feed #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: package:dart_results_feed | |
permissions: read-all | |
on: | |
# Run CI on all PRs (against any branch) and on pushes to the main branch. | |
pull_request: | |
paths: | |
- '.github/workflows/results_feed.yaml' | |
- 'results_feed/**' | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/results_feed.yaml' | |
- 'results_feed/**' | |
schedule: | |
- cron: '0 0 * * 0' # weekly | |
defaults: | |
run: | |
working-directory: results_feed | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
sdk: | |
- 2.10.0 # Does not work on newer SDKs. | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Cache build_runner results | |
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 | |
with: | |
path: results_feed/.dart_tool/build | |
key: ${{ matrix.os }}-${{ matrix.sdk }} | |
- name: Cache Pub hosted dependencies | |
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 | |
with: | |
path: "~/.pub-cache/hosted" | |
key: "${{ matrix.os }}-${{ matrix.sdk }}" | |
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c | |
with: | |
sdk: ${{ matrix.sdk }} | |
- run: dart pub get | |
- run: dart format --output=none --set-exit-if-changed . | |
- run: dart pub run build_runner build | |
- run: dart analyze --fatal-infos | |
- run: dart pub run build_runner test -- -p chrome -x requires_auth |