| name: package:process | |
| permissions: | |
| contents: read | |
| on: | |
| schedule: | |
| # “At 00:00 (UTC) on Sunday.” | |
| - cron: '0 0 * * 0' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/process.yaml' | |
| - 'pkgs/process/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/process.yaml' | |
| - 'pkgs/process/**' | |
| defaults: | |
| run: | |
| working-directory: pkgs/process/ | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| sdk: [stable, dev] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| - uses: dart-lang/setup-dart@7654d458321ee25acccccfdb86cd48bd95768ff1 | |
| - run: dart pub get | |
| - run: dart format --output=none --set-exit-if-changed . | |
| if: ${{ matrix.sdk == 'stable' }} | |
| - run: dart analyze --fatal-infos | |
| - run: dart test |