Dart CI #2817
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dart CI | |
on: | |
schedule: | |
- cron: '*/30 8 * * *' | |
push: | |
branches: | |
- develop | |
paths: | |
- 'melos.yaml' | |
- 'packages/**' | |
- '.github/workflows/dart-ci.yml' | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- 'melos.yaml' | |
- 'packages/**' | |
- '.github/workflows/dart-ci.yml' | |
jobs: | |
ci: | |
name: Dart CI | |
strategy: | |
matrix: | |
os: ['ubuntu-latest'] | |
channel: ['stable'] | |
flutter_version: ['3.19.6'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install libraries | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsqlite3-dev -y | |
bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh) | |
- name: Set up flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ matrix.channel }} | |
flutter-version: ${{ matrix.flutter_version }} | |
- name: Install packages | |
run: | | |
dart pub global activate dartdoc | |
dart pub global activate melos | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Bootstrap | |
run: | | |
melos bs | |
- name: Linter | |
run: | | |
melos check-format | |
melos analyze | |
- name: Test | |
run: | | |
melos test | |
- name: Documentation | |
run: | | |
melos doc | |
- name: Verify | |
run: | | |
melos clean | |
melos verify |