forked from react-native-webview/react-native-webview
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (34 loc) · 1023 Bytes
/
macos-ci.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
name: macOS
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2.5.1
with:
node-version: 20
- name: Cache /node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install npm dependencies
run: yarn --frozen-lockfile
- name: Install macOS dependencies
if: false # Enable this if react-native-macos falls behind
run: yarn add:macos
- name: Install Pods
run: pod install
working-directory: example/macos
- name: Build macOS test app
run: |
xcodebuild -workspace WebviewExample.xcworkspace -scheme ReactTestApp CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build
working-directory: example/macos
timeout-minutes: 60