-
Notifications
You must be signed in to change notification settings - Fork 385
30 lines (27 loc) · 863 Bytes
/
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
name: Dart CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
#The type of machine to run the job on. [windows,macos, ubuntu , self-hosted]
runs-on: macos-latest
#sequence of tasks called
steps:
# The branch or tag ref that triggered the workflow will be checked out.
# https://github.com/actions/checkout
- uses: actions/checkout@v1
# Setup a flutter environment.
# https://github.com/marketplace/actions/flutter-action
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter pub get
- name: Static analysis
run: flutter analyze
- name: Running tests
# We can run SQLite tests only on real device
# flutter run -t test/data/local/all_tests.dart
run: flutter test test/tests.dart