-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (54 loc) · 1.57 KB
/
unit_tests.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
55
56
name: Unit tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
analyze-and-test-generator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/[email protected]
with:
channel: 'dev'
- run: flutter pub get
working-directory: framy_generator
- run: flutter analyze
working-directory: framy_generator
- run: flutter pub test
working-directory: framy_generator
counter-app-widget-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/[email protected]
with:
channel: 'dev'
- run: flutter pub get
working-directory: test_apps/counter_app
- run: flutter test
working-directory: test_apps/counter_app
- name: Upload failure images
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: failure-images
path: ./test_apps/counter_app/test/failures
weight-tracker-widget-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/[email protected]
with:
channel: 'dev'
- run: flutter pub get
working-directory: test_apps/weight_tracker
- run: flutter test
working-directory: test_apps/weight_tracker
- name: Upload failure images
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: failure-images
path: ./test_apps/weight_tracker/test/failures