Skip to content

Commit b172685

Browse files
authored
Create flutter.yml
1 parent 10578b1 commit b172685

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/flutter.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Flutter Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- uses: subosito/flutter-action@v1.4.0
17+
18+
- name: Doctor
19+
run: flutter doctor
20+
21+
- name: Install dependencies
22+
run: flutter packages get
23+
24+
- name: Format
25+
run: flutter format lib test example --set-exit-if-changed
26+
27+
- name: Analyze
28+
run: flutter analyze lib test example
29+
30+
- name: Run tests
31+
run: flutter test --coverage --coverage-path=lcov.info
32+
33+
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)