v3.1.0 #573
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: e2e | |
env: | |
CI: true | |
DETOX_CONFIGURATION: ios.simulator+xaman.ios | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ develop, master ] | |
jobs: | |
build-test: | |
if: github.event.pull_request.draft == false | |
runs-on: [ self-hosted, macOS, ARM64 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Prepare Environment | |
uses: ./.github/actions/prepare-env | |
with: | |
cocoapods: 'true' | |
- name: Rebuild detox | |
run: | | |
npx detox clean-framework-cache | |
npx detox build-framework-cache | |
- name: Build app for detox | |
run: npx detox build e2e --configuration ${DETOX_CONFIGURATION} --if-missing | |
- name: Run e2e tests | |
run: npx cucumber-js ./e2e test | |
- name: Upload artifact files | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: e2e artifact | |
path: e2e/artifacts/ |