-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (49 loc) · 1.51 KB
/
GIRAF.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: GIRAF
on: [push]
env:
flutter_channel: "stable"
flutter_version: "3.24.1"
java_version: "17.0.8+101"
jobs:
Android:
name: Flutter on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
flutter_path: /opt/hostedtoolcache/flutter
- os: macos-latest
flutter_path: /Users/runner/hostedtoolcache/flutter
- os: windows-latest
flutter_path: '%USERPROFILE%\hostedtoolcache\flutter'
steps:
- uses: actions/checkout@v3
- name: Create .env file
run: |
cp .env.example .env
shell: bash
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: ${{ env.java_version }}
- name: Cache Flutter dependencies
uses: actions/cache@v3
with:
path: ${{ matrix.flutter_path }}
key: ${{ runner.os }}-flutter-${{ env.flutter_version }}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: ${{ env.flutter_channel }}
- run: flutter pub get
name: Get dependencies
- run: flutter doctor
name: Doctor
- run: flutter analyze
name: Linter
- run: flutter test test/blocs test/exceptions test/models --coverage
name: Tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3