-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Dart CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
FLUTTER_VERSION: 3 | ||
|
||
jobs: | ||
ci: | ||
name: Continuous integration | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Setup | ||
- uses: actions/checkout@v3 | ||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
# Install dependencies | ||
- name: isar-crdt install dependencies | ||
run: dart pub get | ||
working-directory: packages/isar-crdt | ||
- name: isar-crdt-generator install dependencies | ||
run: dart pub get | ||
working-directory: packages/isar-crdt-generator | ||
- name: isar-crdt-test install dependencies | ||
run: dart pub get | ||
working-directory: packages/isar-crdt-test | ||
|
||
# Formatting | ||
- name: Check formatting | ||
run: dart format -o none --set-exit-if-changed . | ||
|
||
# Linting | ||
- name: Linting | ||
run: dart analyze --fatal-warnings | ||
|
||
# Testing | ||
- name: Test isar-crdt package | ||
working-directory: packages/isar-crdt | ||
run: dart test | ||
- name: E2E tests | ||
working-directory: packages/isar-crdt-test | ||
run: | | ||
dart run build_runner build | ||
dart test |