Skip to content

Commit 4e0fc5a

Browse files
committed
Update E2E workflow to downgrade action versions and improve script formatting
1 parent 62350ae commit 4e0fc5a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/e2e-android.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@v3
1111

1212
- name: Free Disk Space (Ubuntu)
1313
uses: jlumbroso/free-disk-space@main
@@ -18,18 +18,18 @@ jobs:
1818
- name: Setup
1919
uses: ./.github/actions/setup
2020

21-
- name: Install detox, detox-cli react-native-cli
21+
- name: Install detox, detox-cli, react-native-cli
2222
run: npm install -g detox detox-cli react-native-cli
2323

2424
- name: Setup Java
25-
uses: actions/setup-java@v4
25+
uses: actions/setup-java@v3
2626
with:
2727
# cache: gradle
2828
distribution: zulu
2929
java-version: 17
3030

3131
- name: Setup Gradle
32-
uses: gradle/actions/setup-gradle@v3
32+
uses: gradle/gradle-build-action@v2
3333
with:
3434
gradle-version: wrapper
3535
# cache-read-only: false
@@ -42,7 +42,7 @@ jobs:
4242
4343
# - name: Cache Detox build
4444
# id: cache-detox-build
45-
# uses: actions/cache@v4
45+
# uses: actions/cache@v3
4646
# with:
4747
# path: example/android/app/build
4848
# key: ${{ runner.os }}-detox-build
@@ -51,8 +51,8 @@ jobs:
5151

5252
- name: Detox build
5353
env:
54-
ITBL_API_KEY: ${{secrets.ITERABLE_API_KEY}}
55-
ITBL_ID: ${{secrets.ITBL_ID}}
54+
ITBL_API_KEY: ${{ secrets.ITERABLE_API_KEY }}
55+
ITBL_ID: ${{ secrets.ITBL_ID }}
5656
CI: true
5757
run: |
5858
cd example
@@ -72,8 +72,8 @@ jobs:
7272
- name: Detox test
7373
uses: reactivecircus/android-emulator-runner@v2
7474
env:
75-
ITBL_API_KEY: ${{secrets.ITERABLE_API_KEY}}
76-
ITBL_ID: ${{secrets.ITBL_ID}}
75+
ITBL_API_KEY: ${{ secrets.ITERABLE_API_KEY }}
76+
ITBL_ID: ${{ secrets.ITBL_ID }}
7777
CI: true
7878
with:
7979
api-level: 31
@@ -82,11 +82,11 @@ jobs:
8282
force-avd-creation: false
8383
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-metrics
8484
disable-animations: true
85-
script: yarn detox test --configuration android.emu.release --headless --record-logs all --record-videos failing --take-screenshots failing --record-timeline all --capture-view-hierarchy enabled --cleanup --maxWorkers=2 --workers 1 --debug-synchronization 500 -l trace --cleanup --reuse
85+
script: yarn detox test --configuration android.emu.release --headless --record-logs all --record-videos failing --take-screenshots failing --capture-view-hierarchy enabled --maxWorkers=2 --debug-synchronization 500 -l trace --cleanup --reuse
8686

8787
- name: Upload artifacts
8888
if: failure()
89-
uses: actions/upload-artifact@v4
89+
uses: actions/upload-artifact@v3
9090
with:
9191
name: detox-artifacts
9292
path: example/artifacts

0 commit comments

Comments
 (0)