Skip to content

Commit

Permalink
Update integration test workflows to reference example directory for …
Browse files Browse the repository at this point in the history
…test files and artifacts
  • Loading branch information
lposen committed Oct 16, 2024
1 parent 2365352 commit 29f2a5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/detox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Find test files
id: set-test-files
run: |
TEST_FILES=$(find e2e -name '*.test.js' | sed 's|e2e/||g' | jq -R -s -c 'split("\n")[:-1]')
TEST_FILES=$(find example/e2e -name '*.test.js' | sed 's|example/e2e/||g' | jq -R -s -c 'split("\n")[:-1]')
echo "test-files=$TEST_FILES" >> $GITHUB_OUTPUT
build-ios:
name: iOS - Build app for Detox tests
Expand Down Expand Up @@ -198,5 +198,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: detox-android-artifacts-${{ matrix.test-file }}
path: artifacts
path: example/artifacts
retention-days: 1
6 changes: 3 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: List devices
run: applesimutils --list

- name: Start Metro Server
run: yarn example detox:start &

- name: Run doctor
run: cd example; npx react-native doctor; cd -

Expand All @@ -44,9 +47,6 @@ jobs:
- name: Build Detox
run: cd example; yarn detox build -c ios.sim.debug; cd -

- name: Start Metro Server
run: yarn example detox:start &

- name: Build and Test
shell: bash
env:
Expand Down

0 comments on commit 29f2a5e

Please sign in to comment.