Skip to content

Commit 102bf37

Browse files
authored
Add support for GitHub Action CI
1 parent 9ab2467 commit 102bf37

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build
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+
- uses: dart-lang/setup-dart@v1
16+
17+
- name: Install dependencies
18+
run: dart pub get
19+
20+
# Consider passing '--fatal-infos' for slightly stricter analysis.
21+
- name: Analyze project source
22+
run: dart analyze --fatal-infos
23+
24+
# Your project will need to have tests in test/ and a dependency on
25+
# package:test for this step to succeed. Note that Flutter projects will
26+
# want to change this to 'flutter test'.
27+
- name: Run tests
28+
run: flutter test

0 commit comments

Comments
 (0)