-
-
Notifications
You must be signed in to change notification settings - Fork 19
49 lines (42 loc) · 1.09 KB
/
pr-workflow.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
name: PR Checks
on:
pull_request:
branches:
- '*'
jobs:
checks:
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true
cache-read-only: false
- name: Run Swift Lint
run: |
cd iosApp
swiftlint
cd ..
- name: Create Firebase json
run: |
echo "$FIREBASE_JSON" > androidApp/google-services.json.b64
base64 -d -i androidApp/google-services.json.b64 > androidApp/google-services.json
env:
FIREBASE_JSON: ${{ secrets.FIREBASE_JSON }}
- name: Run Checks
run: ./gradlew check
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: build-reports
path: |
**/build/reports/*