-
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (48 loc) · 1.15 KB
/
test.yml
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
55
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test_version:
timeout-minutes: 10
runs-on: ubuntu-22.04
strategy:
matrix:
version: ["3.10"]
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.version }}
channel: any
- run: flutter pub get
- run: flutter test
- name: Archive golden test errors
if: failure()
uses: actions/upload-artifact@v4
with:
name: android-release-failed
path: test/
retention-days: 7
test_channel:
timeout-minutes: 10
runs-on: ubuntu-22.04
strategy:
matrix:
version: [ "stable", "beta", "master" ]
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.version }}
- run: flutter pub get
- run: flutter test
- name: Archive golden test errors
if: failure()
uses: actions/upload-artifact@v4
with:
name: android-release-failed
path: test/
retention-days: 7