Skip to content

Commit 7e0e130

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 7e0e130

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/dart.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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
32+
- name: build example project
33+
working-directory: ./example
34+
run: flutter build ios --release --no-codesign
35+
- name: publish --dry-run
36+
run: flutter pub publish --dry-run

0 commit comments

Comments
 (0)