blob: 9a4d99a6196331e6277763988b501da28e29bda5 [file] [edit]
name: package:repo_manage
permissions: read-all
on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/repo_manage.yml'
- 'pkgs/repo_manage/**'
push:
branches: [ main ]
paths:
- '.github/workflows/repo_manage.yml'
- 'pkgs/repo_manage/**'
schedule:
- cron: '0 0 * * 0' # weekly
defaults:
run:
working-directory: pkgs/repo_manage
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@27d5ce7f107fe9357f9df03efb73ab90386fccae
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' }}