-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1.02 KB
/
pull-request-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
name: Test pull request
concurrency: test-prq-app
on:
pull_request:
paths:
- app/**
permissions:
contents: read
jobs:
build:
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