-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.39 KB
/
default-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
50
51
52
53
54
55
56
57
name: default-workflow
on: [push]
# on:
# push:
# branches:
# - main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare runner
uses: ./.github/actions/prepare-ubuntu-runner
- name: Run virtual machine tests
run: bundle exec fastlane run_vm_tests
build_android:
name: Build Android debug
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Prepare runner
uses: ./.github/actions/prepare-ubuntu-runner
- name: Decode and save google-services.json
run: echo "${{ secrets.GOOGLE_SERVICES_JSON }}" | base64 -d > ./android/app/google-services.json
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build debug
run: bundle exec fastlane android build_debug
build_ios:
name: Build iOS debug
runs-on: macos-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Prepare runner
uses: ./.github/actions/prepare-macos-runner
- name: Decode and save GoogleServices-Info.plist
run: echo "${{ secrets.GOOGLESERVICE_INFO_PLIST }}" | base64 -d > ./ios/Runner/GoogleService-Info.plist
- name: Build debug
run: bundle exec fastlane ios build_debug