blob: 3a68c5be2cbaa39da21c19b93e6e0ee428e5fc9b [file] [edit]
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260
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 == 'dev' }}
# 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