-
-
Notifications
You must be signed in to change notification settings - Fork 79
46 lines (41 loc) · 1.06 KB
/
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
name: Quality
on:
push:
branches: [main]
pull_request:
types:
- opened
- synchronize
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clone Flutter repository with stable channel
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter packages get
# Run analyze
- run: flutter analyze
- uses: leancodepl/dart-problem-matcher@main
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Set up Flutter.
- name: Clone Flutter repository with stable channel
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter packages get
# Run tests
- run: flutter test --machine > test-results.json
# upload test results
- uses: actions/upload-artifact@v3
if: success() || failure() # run this step even if previous step failed
with:
name: test-results
path: test-results.json