-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (65 loc) · 2 KB
/
expo_local-builds.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
name: TEST - local-builds mode (Expo)
on:
workflow_call:
inputs:
env:
description: 'Environment (dev, test, prod)'
required: true
type: string
use_github_action:
description: 'Use Sherlo Github Action'
required: false
type: boolean
default: false
workflow_dispatch:
inputs:
env:
description: 'Environment (dev, test, prod)'
required: true
default: 'dev'
type: string
use_github_action:
description: 'Use Sherlo Github Action'
required: false
type: boolean
default: false
jobs:
sherlo_local_builds:
name: Run sherlo local-builds (expo)
environment: ${{ inputs.env }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
lfs: true
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.18.0'
- name: Install dependencies
run: yarn
- name: Build dependencies
run: yarn switch-env:${{ inputs.env }}
env:
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
- name: Run sherlo local-builds with CLI
if: inputs.use_github_action == false
working-directory: testing/expo-storybook-8
run: |
yarn sherlo local-builds \
--config ../../configs/default-devices.json \
--android builds/preview/android.apk \
--ios builds/preview/ios.tar.gz \
--token ${{ secrets.SHERLO_LOCAL_BUILDS_EXPO_TOKEN }}
- name: Run sherlo local-builds with Github Action
if: inputs.use_github_action == true
uses: ./.
with:
command: local-builds
projectRoot: testing/expo-storybook-8
config: ../../configs/default-devices.json
android: builds/preview/android.apk
ios: builds/preview/ios.tar.gz
env:
SHERLO_TOKEN: ${{ secrets.SHERLO_LOCAL_BUILDS_EXPO_TOKEN }}