-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.09 KB
/
pop_pop_components_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
42
43
44
45
46
47
48
49
name: pop_pop_components_test
on:
push:
branches:
- master
paths:
- "packages/pop_pop_components/**"
- ".github/workflows/**"
pull_request:
paths:
- "packages/pop_pop_components/**"
- ".github/workflows/**"
jobs:
test:
defaults:
run:
working-directory: packages/pop_pop_components
runs-on: macos-11
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '2.8.1'
channel: "stable"
- run: flutter pub get
- run: flutter analyze
- run: flutter test --coverage
id: flutterTest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload golden test failures
uses: actions/upload-artifact@v4
if: failure() && steps.flutterTest.outcome == 'failure'
with:
name: test-failures
path: packages/pop_pop_components/test/failures/