-
Notifications
You must be signed in to change notification settings - Fork 245
66 lines (55 loc) · 1.87 KB
/
react-native.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "React Native E2E Test"
on:
pull_request:
paths-ignore:
- "!.github/workflows/test-compilation.yml"
- ".github/**"
- ".buildkite/**"
- "*.md"
- "LICENSE"
- "CODEOWNERS"
- "renovate.json"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-rn-e2e:
name: "Check react native e2e"
strategy:
fail-fast: false
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: clone react-native-prisma repo
run: git clone http://github.com/prisma/react-native-prisma.git
# The repo needs to be on the same level as the prisma-engines repo so that the make scripts work
working-directory: ..
- uses: dtolnay/rust-toolchain@stable
- name: Build iOS Prisma Query Engine
run: make sim
working-directory: query-engine/query-engine-c-abi
- name: Enable corepack
run: corepack enable yarn
- name: change example app to use local prisma client
working-directory: ../react-native-prisma/example
run: yarn add @prisma/client@../../packages/client
- name: Install dependencies
working-directory: ../react-native-prisma
run: yarn
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true
- name: Cache CocoaPods
id: cache-cocoapods
uses: actions/cache@v3
with:
path: ../react-native-prisma/example/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('../react-native-prisma/example/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install CocoaPods
working-directory: ../react-native-prisma/example/ios
if: steps.cache-cocoapods.outputs.cache-hit != 'true'
run: pod install