Skip to content

Dart CI

Dart CI #2817

Workflow file for this run

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