blob: be81561d31be49590da6ecdbbe59e447c3a329e6 [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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7
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