Forked from edvinasbartkus/.github-workflows-main.yml
Last active
October 9, 2020 16:40
-
-
Save jonathanstiansen/3f4a0f3a617481390adc50b881bd664d to your computer and use it in GitHub Desktop.
Github Action for React Native Detox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Detox | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'customer/**' | |
- 'shared/**' | |
jobs: | |
build: | |
runs-on: macOS-latest | |
timeout-minutes: 15 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_11.2.app | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@master | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Rebuild detox | |
if: steps.cache.outputs.cache-hit == 'true' | |
run: yarn detox-setup | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn install | |
- name: Cache Pods | |
uses: actions/cache@v1 | |
id: podcache | |
with: | |
path: ios/Pods | |
key: pods-${{ hashFiles('**/Podfile.lock') }} | |
- name: Update Pods | |
run: | | |
gem update cocoapods xcodeproj | |
cd ios && pod install && cd .. | |
- run: brew tap wix/brew | |
- run: brew install applesimutils | |
- run: (cd customer; yarn ci:detox:build:dev) | |
- run: (cd customer; yarn ci:detox:test:dev --debug-synchronization 200) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"detox-setup": "detox clean-framework-cache && detox build-framework-cache" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment