-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (49 loc) · 1.2 KB
/
test-app.yaml
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
name: Test app
on:
push:
branches:
- "main"
paths:
- ".github/workflows/release-app.yaml"
- "app/*"
- "app/**/*"
workflow_dispatch:
workflow_call:
secrets:
DOTENV:
required: true
CODECOV_TOKEN:
required: true
jobs:
build:
environment: production
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Make env
working-directory: app/
run: |
echo "${{ secrets.DOTENV }}" > .env
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install dependencies
working-directory: app/
run: flutter pub get
- name: Run analyzer
working-directory: app/
run: flutter analyze
- name: Run unit tests
working-directory: app/
run: flutter test --coverage
- name: Upload to code coverage
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: app/coverage/lcov.info