-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (29 loc) · 882 Bytes
/
Copy pathCI.yml
File metadata and controls
36 lines (29 loc) · 882 Bytes
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
name: CI_tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Get flutter dependencies
run: flutter pub get
working-directory: Space_Mapper
- name: Statically analyze the Dart code for any errors.
run: flutter analyze
working-directory: Space_Mapper
- name: Run tests for our flutter project.
run: flutter test
working-directory: Space_Mapper
- name: Run tests
run: flutter test --coverage
working-directory: Space_Mapper
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
with:
file: Space_Mapper/coverage/lcov.info