-
Notifications
You must be signed in to change notification settings - Fork 49
44 lines (36 loc) · 1000 Bytes
/
e2e.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
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/