Skip to content

Commit 4d74d1e

Browse files
committed
Update config
1 parent 0f56ea8 commit 4d74d1e

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

.github/workflows/MiNe2e.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ jobs:
146146
run: |
147147
unset GITHUB_TOKEN
148148
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
149-
- name: "Fetch artifacts from run 676"
149+
- name: "Fetch artifacts from run 41"
150150
id: fetch-artifacts
151151
run: |
152-
artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14200920117/artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
152+
artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14242504528/artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
153153
echo "Artifacts URL: $artifacts_url"
154154
echo "artifacts_url=$artifacts_url" >> $GITHUB_ENV
155155
- name: "Download Android app"
@@ -209,27 +209,31 @@ jobs:
209209
chmod +x maestro/run_maestro_tests.sh
210210
bash maestro/helpers/prepare_android.sh
211211
bash maestro/run_maestro_tests.sh android
212-
213-
- name: "Debug screenshot generation"
212+
213+
- name: "Capture emulator logs"
214214
if: always()
215215
continue-on-error: true
216216
run: |
217-
echo "Checking contents of maestro/tests/images/actual/android/ after test execution:"
218-
ls -R ${{ github.workspace }}/maestro/tests/images/actual/android/
217+
mkdir -p ${{ github.workspace }}/emulator-logs
218+
adb logcat -d > ${{ github.workspace }}/emulator-logs/emulator-logcat.txt
219+
adb shell dmesg > ${{ github.workspace }}/emulator-logs/emulator-dmesg.txt
220+
shell: bash
221+
222+
- name: "Upload emulator logs"
223+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #v4
224+
continue-on-error: true
225+
if: always()
226+
with:
227+
name: emulator-logs
228+
path: ${{ github.workspace }}/emulator-logs/
229+
if-no-files-found: warn
219230

220231
- name: "Debug root folder"
221232
if: always()
222233
continue-on-error: true
223234
run: |
224235
echo "Checking contents of the root folder:"
225236
ls -R ${{ github.workspace }}
226-
227-
- name: "Debug screenshot directory"
228-
if: always()
229-
continue-on-error: true
230-
run: |
231-
echo "Checking contents of maestro/tests/images/actual/android/"
232-
ls -R ${{ github.workspace }}/maestro/tests/images/actual/android/
233237
234238
- name: "Archive runtime logs"
235239
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #v4

maestro/helpers/compare_screenshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const pixelmatch = require('pixelmatch');
88
const core = require('@actions/core');
99

1010
const platform = process.argv[2];
11-
const actualDir = path.join(__dirname, `../tests/images/actual/${platform}`);
11+
const actualDir = path.join(__dirname, `../../images/actual/${platform}`);
1212
const expectedDir = path.join(__dirname, `../tests/images/expected/${platform}`);
1313
const diffDir = path.join(__dirname, `../tests/images/diffs/${platform}-${process.env.GITHUB_RUN_ID}`);
1414

maestro/tests/AppStartup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ appId: "${APP_ID}"
1818
- takeScreenshot:
1919
path: "maestro/tests/images/actual/${PLATFORM}/MiN_page"
2020
- tapOn: "http://runtime-url:8080"
21-
- inputText: "http://10.0.2.2:8080"
21+
- inputText: "http://localhost:8080"
2222
- pressKey: Enter
2323
- hideKeyboard
2424
- takeScreenshot:

0 commit comments

Comments
 (0)