Merge pull request #117874 from syntaxerror247/fix-forks-ci

CI: Skip running instrumented tests on forks
This commit is contained in:
Rémi Verschelde
2026-03-26 21:48:15 +01:00
committed by GitHub
+4 -4
View File
@@ -124,24 +124,24 @@ jobs:
path: picoos
- name: Generate Instrumented test APKs
if: matrix.instrumented_tests && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
run: |
cd platform/android/java
./gradlew :app:assembleAndroidTest :app:assembleInstrumentedDebug -Pperform_signing=true
cd ../../..
- name: Create credentials file
if: matrix.instrumented_tests && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
- name: Set up gcloud CLI
if: matrix.instrumented_tests && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
uses: google-github-actions/setup-gcloud@v3
- name: Run tests on Firebase Test Lab
if: matrix.instrumented_tests && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
run: |
set +e
output=$(gcloud firebase test android run \