blob: 0923aac706cd195cef5f339f5a3392659ec5bed1 [file] [edit]
name: package:canary
permissions: read-all
on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/canary.yml'
- 'pkgs/canary/**'
push:
branches: [ main ]
paths:
- '.github/workflows/canary.yml'
- 'pkgs/canary/**'
schedule:
- cron: '0 0 * * 0' # weekly
defaults:
run:
working-directory: pkgs/canary
env:
GH_TOKEN: ${{ github.token }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-cache-
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2
with:
channel: main
cache: true
- run: dart pub get
- run: dart analyze --fatal-infos
- run: dart format --output=none --set-exit-if-changed .
- run: dart test