Skip to content

Commit ac21b1e

Browse files
authored
Create flutter.yml
1 parent c90f6a3 commit ac21b1e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/flutter.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
with:
18+
channel: 'master'
19+
20+
- name: Doctor
21+
run: flutter doctor
22+
23+
- name: Install dependencies
24+
run: flutter packages get
25+
26+
- name: Format
27+
run: flutter format lib test --set-exit-if-changed
28+
29+
- name: Analyze
30+
run: flutter analyze lib test
31+
32+
- name: Run tests
33+
run: flutter test --coverage --coverage-path=lcov.info
34+
35+
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)