| name: package:firehose |
| |
| permissions: read-all |
| |
| on: |
| pull_request: |
| branches: [ main ] |
| paths: |
| - '.github/workflows/firehose.yml' |
| - 'pkgs/firehose/**' |
| push: |
| branches: [ main ] |
| paths: |
| - '.github/workflows/firehose.yml' |
| - 'pkgs/firehose/**' |
| schedule: |
| - cron: '0 0 * * 0' # weekly |
| |
| defaults: |
| run: |
| working-directory: pkgs/firehose |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| sdk: [stable, dev] |
| steps: |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 |
| - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 |
| with: |
| sdk: ${{ matrix.sdk }} |
| |
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 |
| with: |
| path: ~/.pub-cache |
| key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }} |
| restore-keys: | |
| ${{ runner.os }}-pub-cache- |
| |
| - run: dart pub get |
| |
| - run: dart analyze --fatal-infos |
| |
| - run: dart format --output=none --set-exit-if-changed . |
| if: ${{ matrix.sdk == 'stable' }} |
| |
| - run: dart test |
| env: |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |