| name: package:jot |
| |
| permissions: read-all |
| |
| on: |
| # Run CI on pushes to the main branch, and on PRs against main. |
| push: |
| branches: [ main ] |
| paths: |
| - '.github/workflows/jot.yml' |
| - 'pkgs/jot/**' |
| pull_request: |
| branches: [ main ] |
| paths: |
| - '.github/workflows/jot.yml' |
| - 'pkgs/jot/**' |
| schedule: |
| - cron: '0 0 * * 0' # weekly |
| |
| defaults: |
| run: |
| working-directory: pkgs/jot |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| sdk: [stable, dev] |
| steps: |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c |
| with: |
| sdk: ${{ matrix.sdk }} |
| |
| - run: dart pub get |
| |
| - run: dart analyze --fatal-infos |
| |
| - run: dart format --output=none --set-exit-if-changed . |
| if: ${{ matrix.sdk == 'stable' }} |
| |
| # Ensure that the front-end is up to date. |
| - run: dart tool/build_web.dart --verify |
| |
| # Ensure that we can build the front-end. |
| - run: dart tool/build_web.dart |
| |
| - run: dart test |
| |
| # Ensure that we can build the Dart SDK docs. |
| - run: dart tool/create_dart_sdk.dart |