-
Notifications
You must be signed in to change notification settings - Fork 78
62 lines (53 loc) · 1.45 KB
/
analyze-test.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
59
60
61
62
on:
pull_request:
paths-ignore:
- ".github/**"
- "docs"
- "Jenkinsfile"
- "**/*.md"
name: Analyze and test
jobs:
analyze-test:
runs-on: ubuntu-latest
strategy:
matrix:
modules:
- default
- core
- model
- contact
- forward
- rule_filter
- fcm
- email_recovery
- server_settings
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.2"
channel: "stable"
cache: true
cache-key: "deps-${{ hashFiles('**/pubspec.lock') }}"
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path
- name: Setup Firebase env
env:
FIREBASE_ENV: ${{ secrets.FIREBASE_ENV }}
run: ./scripts/setup-firebase.sh
- name: Run prebuild
run: ./scripts/prebuild.sh
- name: Analyze
uses: zgosalvez/github-actions-analyze-dart@v1
- name: Test
env:
MODULES: ${{ matrix.modules }}
run: ./scripts/test.sh
- name: Upload test reports
if: success() || failure() # Always upload report
uses: actions/upload-artifact@v4
with:
name: test-reports-${{ matrix.modules }}
path: test-report*.json