Compare commits

..

1 Commits

Author SHA1 Message Date
d2c4da8628 ci: Instrumentation tests coverage in ci.
Some checks failed
Check PR code / BuildAndTestAndCoverage (pull_request) Failing after 16m0s
2025-03-26 10:15:09 +01:00

View File

@ -28,13 +28,23 @@ jobs:
- name: run selfoss - name: run selfoss
run: | run: |
docker compose -f .gitea/workflows/assets/docker-compose.yml up -d docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
# https://github.com/ReactiveCircus/android-emulator-runner/issues/385
- name: Kill crashpad_handler processes
if: always()
run: |
pkill -SIGTERM crashpad_handler || true
sleep 5
pkill -SIGKILL crashpad_handler || true
- name: Change url until I find a better way to do it - name: Change url until I find a better way to do it
run: | run: |
sed -i "s/val defaultUrl = \"http:\/\/10\.0\.2\.2\:8888\"/val defaultUrl = \"http:\/\/172\.17\.0\.1\:8888\"/g" ./androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/CommonTests.kt sed -i "s/val defaultUrl = \"http:\/\/10\.0\.2\.2\:8888\"/val defaultUrl = \"http:\/\/172\.17\.0\.1\:8888\"/g" ./androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/CommonTests.kt
- name: AVD kedavra
run: |
avdmanager list device
- name: Tests - name: Tests
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2
with: with:
api-level: 35 api-level: 29
profile: pixel_7a profile: pixel_7a
script: | script: |
./gradlew androidApp:clearScreenshotsTask || true ./gradlew androidApp:clearScreenshotsTask || true