forked from FAIMS/FAIMS3
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (77 loc) · 2.92 KB
/
pr-test-ios.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
67
68
69
70
71
72
73
74
75
76
77
name: Integration test for Apple compile, no upload
on:
# Allows you to run this workflow manually from the Actions a tab
workflow_dispatch:
push:
branches:
- main
- staging
- trying
pull_request:
branches:
- main
- staging
- trying
jobs:
deploy:
name: Running Fastlane
runs-on: macOS-latest
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.2'
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: |
bundle install # to get cocoapods...
- run: fastlane install_plugins
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Building webapp
run: |
export REACT_APP_PRODUCTION_BUILD=true
export REACT_APP_DIRECTORY_HOST=alpha.db.faims.edu.au
export REACT_APP_COMMIT_VERSION=$(bin/getDescribeString.sh ios)
git clean -xfd
npm ci
npm run build
# https://capacitorjs.com/docs/android
- run: npx cap update ios
- run: npx cap sync --deployment ios
- run: cd ios/App; pod install
- run: chmod -R 777 /Users/runner/hostedtoolcache/Ruby/3.0.2/x64/lib/ruby/gems/
- name: Build iOS fastlane IPA
uses: maierj/fastlane-action@v2.3.0
with:
lane: test_ipa
subdirectory: 'ios/App'
bundle-install-path: '$HOME/vendor/bundle'
verbose: false
env:
APP_STORE_CONNECT_TEAM_ID: '${{ secrets.APP_STORE_CONNECT_TEAM_ID }}'
DEVELOPER_APP_ID: '${{ secrets.DEVELOPER_APP_ID }}'
DEVELOPER_APP_IDENTIFIER: '${{ secrets.DEVELOPER_APP_IDENTIFIER }}'
DEVELOPER_PORTAL_TEAM_ID: '${{ secrets.DEVELOPER_PORTAL_TEAM_ID }}'
FASTLANE_APPLE_ID: '${{ secrets.FASTLANE_APPLE_ID }}'
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: '${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}'
MATCH_PASSWORD: '${{ secrets.MATCH_PASSWORD }}'
GIT_AUTHORIZATION: '${{ secrets.GIT_AUTHORIZATION }}'
PROVISIONING_PROFILE_SPECIFIER: '${{ secrets.PROVISIONING_PROFILE_SPECIFIER }}'
TEMP_KEYCHAIN_PASSWORD: '${{ secrets.TEMP_KEYCHAIN_PASSWORD }}'
TEMP_KEYCHAIN_USER: '${{ secrets.TEMP_KEYCHAIN_USER }}'
APPLE_KEY_ID: '${{ secrets.APPLE_KEY_ID }}'
APPLE_ISSUER_ID: '${{ secrets.APPLE_ISSUER_ID }}'
APPLE_KEY_CONTENT: '${{ secrets.APPLE_KEY_CONTENT }}'
BROWSERSTACK_USERNAME: '${{secrets.BROWSERSTACK_USERNAME}}'
BROWSERSTACK_ACCESS_KEY: '${{secrets.BROWSERSTACK_ACCESS_KEY}}'
- name: Archive ipas
uses: actions/upload-artifact@v2
with:
name: ipa
path: |
/Users/runner/work/FAIMS3/FAIMS3/ios/App/App.ipa