-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.46 KB
/
e2e-test.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
45
46
47
48
49
50
51
52
53
name: E2E
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
setup:
uses: ./.github/workflows/reusable_setup.yml
secrets:
CAP_GH_RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ios:
if: true
needs: 'setup'
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
export PATH="$PATH":"$HOME/.maestro/bin"
brew tap facebook/fb
brew install facebook/fb/idb-companion
./e2e/scripts/RuniOSTest.sh
android:
if: false
needs: 'setup'
runs-on: macos-14
steps:
- uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Add avdmanager and sdkmanager to system PATH
run: |
echo "$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/${{ env.ANDROID_BUILD_TOOLS_VERSION }}" >> $GITHUB_PATH
- name: Sdk
run: |
yes Y | sdkmanager --licenses
- name: "Run Tests"
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
export PATH="$PATH":"$HOME/.maestro/bin"
./e2e/scripts/RunAndroidTest.sh