Repository navigation
68 lines (59 loc) · 2.09 KB
/
Copy pathios.yml
File metadata and controls
68 lines (59 loc) · 2.09 KB
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
63
64
65
66
67
68
name: Build iOS (expo-example)
on:
pull_request:
paths:
- .nvmrc
- .argent/flows/*
- .github/actions/argent-server/action.yml
- .github/scripts/retry-flows.mjs
- .github/workflows/ios.yml
- .github/workflows/ios-build.yml
- .github/workflows/ios-e2e.yml
- packages/react-native-gesture-handler/package.json
- packages/react-native-gesture-handler/RNGestureHandler.podspec
- packages/react-native-gesture-handler/apple/**
- packages/react-native-gesture-handler/shared/**
- packages/react-native-gesture-handler/src/**
- apps/expo-example/**
- apps/common-app/**
- rnrepo.config.json
- yarn.lock
- '!packages/react-native-gesture-handler/src/**/*.test.*'
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ios-${{ github.ref }}
cancel-in-progress: true
jobs:
# Single source of truth for versions shared by the build and e2e workflows.
# A job output is the only way to reach them both: `jobs.<id>.with` resolves
# `needs`, `matrix` and `vars`, but not a workflow-level `env`.
config:
if: github.repository == 'software-mansion/react-native-gesture-handler'
runs-on: ubuntu-latest
outputs:
xcode-version: ${{ steps.versions.outputs.xcode }}
steps:
# The e2e job has to run the same Xcode the app was built with, so its
# simulator runtime matches the SDK.
- name: Pin versions
id: versions
run: echo "xcode=26.6" >> "$GITHUB_OUTPUT"
expo-example:
if: github.repository == 'software-mansion/react-native-gesture-handler'
needs: config
uses: ./.github/workflows/ios-build.yml
with:
app: expo-example
scheme: ExpoExample
artifact-name: ios-app-expo-example
xcode-version: ${{ needs.config.outputs.xcode-version }}
e2e:
if: github.repository == 'software-mansion/react-native-gesture-handler'
needs: [config, expo-example]
uses: ./.github/workflows/ios-e2e.yml
with:
artifact-name: ios-app-expo-example
xcode-version: ${{ needs.config.outputs.xcode-version }}