-
-
Notifications
You must be signed in to change notification settings - Fork 12
36 lines (33 loc) · 1.17 KB
/
functional-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
name: Functional Tests
on: [pull_request]
jobs:
e2e:
runs-on: macos-12
env:
PLATFORM_VERSION: '16.0'
XCODE_VERSION: '14.0'
DEVICE_NAME: iPhone 11 Pro Max
PYTHON_VERSION: '3.9'
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- run: xcrun simctl list
- run: brew install [email protected]
- run: |
brew tap facebook/fb
# # use 1.1.7 because xctest doesn't seem to work with 1.1.8 https://github.com/facebook/idb/issues/811
# pushd /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb
# git checkout f660049bdec9965934973052e6331119a4985096
brew install idb-companion || true
# popd
/usr/local/opt/python@${PYTHON_VERSION}/bin/python${PYTHON_VERSION} -m pip install --user fb-idb
- uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- run: npm install
- run: |
export PATH="${PATH}:$(/usr/local/opt/python@${PYTHON_VERSION}/bin/python${PYTHON_VERSION} -c 'import site; print(site.USER_BASE)')/bin"
_FORCE_LOGS=1 npm run e2e-test