-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (33 loc) · 864 Bytes
/
test.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
name: Test CI
on:
push:
branches-ignore: [ 'main' ]
jobs:
check:
name: Test CI
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Code Checkout
uses: actions/checkout@v4
- name: Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: false
- name: Flutter Config
timeout-minutes: 2
run: flutter config --no-analytics
- name: Flutter Pub Get
timeout-minutes: 5
run: flutter pub get
- name: Dart Analyze
timeout-minutes: 2
run: dart analyze --fatal-infos
- name: Flutter Test
run: |
flutter test \
-r github \
-j $(grep -c processor /proc/cpuinfo)
- name: Flutter Publish Dry Run
run: flutter pub publish --dry-run