Skip to content

Commit 958d143

Browse files
committed
feat: CI for dart analyze and flutter test
Added CI to run dart analyze and flutter test on push and pull-requests
1 parent 54596b9 commit 958d143

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/dart.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Dart
7+
8+
on:
9+
push:
10+
branches: [ master ]
11+
pull_request:
12+
branches: [ master ]
13+
14+
jobs:
15+
build:
16+
runs-on: macos-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-java@v1
20+
with:
21+
java-version: '12.x'
22+
- name: Install Flutter
23+
uses: subosito/flutter-action@v1
24+
with:
25+
flutter-version: '2.0.3'
26+
- name: Install dependencies
27+
run: flutter pub get
28+
- name: Run dart analyze
29+
run: dart analyze
30+
- name: run tests
31+
run: flutter test

0 commit comments

Comments
 (0)