Skip to content

Commit

Permalink
Added CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kerero committed Oct 13, 2023
1 parent 6b7ff07 commit d7f0df9
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/test.yaml
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

0 comments on commit d7f0df9

Please sign in to comment.