blob: 580db4b0d2461f79c01ee123a0692f312cbb9dc9 [file] [edit]
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260
with:
sdk: ${{ matrix.sdk }}
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7
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 }}