-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.16 KB
/
test-on-push.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
name: Dart
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
dart-test:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
# skip for now: need to make tests workflow for inherited packages
# - run: dart analyze
- run: dart test
- run: dart run --observe test/gc/autoclose_test_gc.dart
flutter-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/autoclose_flutter
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter test
lint-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/autoclose_lint/test
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: dart run custom_lint .