-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.2 KB
/
flutter-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: [master, develop]
paths-ignore:
- '.github/**'
- '.vscode/**'
- 'releases/**'
- '**/README.md'
- '**/GitVersion.yml'
pull_request:
branches: [master, develop]
paths-ignore:
- '.github/**'
- '.vscode/**'
- 'releases/**'
- '**/README.md'
- '**/GitVersion.yml'
jobs:
test:
name: flutter test
runs-on: ubuntu-latest
env:
JAVA_VERSION: '17.0.1'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{env.JAVA_VERSION}}
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter --version
- run: flutter pub get
- run: flutter analyze
- run: flutter test
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
with:
sdk: 'stable'
- run: dart --version
- name: Install dependencies
run: flutter pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze
# - name: Run tests
# run: dart test