-
Notifications
You must be signed in to change notification settings - Fork 86
41 lines (38 loc) · 1.05 KB
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Dart
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.3'
- name: Install dependencies
run: flutter pub get
- name: Run dart analyze
run: dart analyze
- name: run tests
run: flutter test --coverage
- name: upload coverage report
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV}}
file: ./coverage/lcov.info
- name: build example project
working-directory: ./example
run: flutter build ios --release --no-codesign
- name: publish --dry-run
run: flutter pub publish --dry-run