-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (48 loc) · 1.39 KB
/
ios_test.yml
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
name: iOS Test
on: [ pull_request ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
detect-changes:
name: Detect Changes
runs-on: ubuntu-latest
outputs:
# Matches all files which can affect iOS build, when changed
iosFiles: ${{ steps.file-changes.outputs.iosFiles }}
# Matches all files which can affect Android build, when changed
androidFiles: ${{ steps.file-changes.outputs.androidFiles }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Detect Changes
uses: dorny/paths-filter@v2
id: file-changes
with:
filters: |
iosFiles:
- "!(androidApp/**)"
androidFiles:
- "!(iosApp/**)"
test:
name: iOS Test
runs-on: self-hosted
timeout-minutes: 30
needs: detect-changes
if: ${{ needs.detect-changes.outputs.iosFiles == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: Fastlane Test
working-directory: iosApp
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec fastlane test
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}