Skip to content

Commit

Permalink
adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jun 5, 2024
1 parent d352c90 commit 3115773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ jobs:
if: steps.compare.outputs.equals != 'true'
- run: npx expo prebuild -p ios
- run: git add . && git diff
- run: npx detox build -c ios.sim.release
- run: npm run e2e:build:ios
- run: npm run app:start &
if: matrix.backend != 'false'
working-directory: ${{ github.workspace }}/backend
- run: |
npm install -g wait-on
wait-on -t 60000 http-get://127.0.0.1:8080/management/health
if: matrix.backend != 'false'
- run: npx detox test -c ios.sim.release
- run: npm run e2e:test:ios
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
Expand Down
8 changes: 4 additions & 4 deletions generators/react-native/templates/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "<%= reactNativeAppNameKebabCase %>",
"version": "0.0.1",
"scripts": {
<%_ if (detox) { _%>
"e2e:build:ios": "detox build --configuration ios.sim.release",
"e2e:test:ios": "detox test --configuration ios.sim.release --retries 3",
<%_ } _%>
"android": "expo start --android",
"ios": "expo start --ios",
"test:watch": "jest --watch",
Expand All @@ -15,10 +19,6 @@
"build:web": "expo export",
<%_ if (!skipCommitHook) { _%>
"precommit": "lint-staged",
<%_ } _%>
<%_ if (detox) { _%>
"start:e2e": "expo start --no-dev --minify",
"test:e2e": "./e2e/scripts/setup.sh && detox test --configuration ios.sim.release --retries 3",
<%_ } _%>
"postinstall": "patch-package",
"prettier": "prettier --write \"{,.,**/,.jhipster/**/}*.{md,json,yml,js,ts,tsx}\"",
Expand Down

0 comments on commit 3115773

Please sign in to comment.