-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.31 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 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
if: ${{ false }} #TODO: remove once finished with documenting public API
# 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