From ba0eb436245c19580919a9d6cfb335ac318b60df Mon Sep 17 00:00:00 2001 From: cesar Date: Wed, 21 Aug 2024 12:04:26 -0300 Subject: [PATCH] embr-4611 Fixed running subset of swazzler tests failing (#1278) * now checking out swazzler since it's not a submodule anymore also fixed wrong path * trying to fix embrace-swazzler3/gradle.properties not found when running swazzler-tests * commenting this out because it takes a lot of time. it 'll get uncommented when wrong path fixed * uncommenting because it worked fine --------- Co-authored-by: cesar roman Co-authored-by: Hanson Ho Co-authored-by: Vitaliy --- .github/workflows/swazzler-tests-subset.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/swazzler-tests-subset.yml b/.github/workflows/swazzler-tests-subset.yml index cd84eee28a..a39a1ccc94 100644 --- a/.github/workflows/swazzler-tests-subset.yml +++ b/.github/workflows/swazzler-tests-subset.yml @@ -34,17 +34,28 @@ jobs: submodules: recursive token: ${{ secrets.GH_ANDROID_SDK_TOKEN || secrets.token }} + - name: Checkout Swazzler + uses: actions/checkout@v4 + with: + repository: embrace-io/embrace-swazzler3 + ref: master + path: ./swazzler-test/embrace-swazzler3 + token: ${{ secrets.GH_ANDROID_SDK_TOKEN }} + - name: "Publish Swazzler locally" - run: cd swazzler-test/embrace-swazzler3 && ./gradlew publishToMavenLocal --no-daemon + run: | + cd ./swazzler-test/embrace-swazzler3 + ./gradlew publishToMavenLocal --no-daemon - name: "Run Gradle Tests" run: | echo "Running Gradle tests" - cd swazzler-test && ./gradlew :functional-tests:swazzlerTests --tests "io.embrace.android.gradle.swazzler.tests.MinimumSurvivalTests" --stacktrace + cd ./swazzler-test + ./gradlew :functional-tests:swazzlerTests --tests "io.embrace.android.gradle.swazzler.tests.MinimumSurvivalTests" --stacktrace - name: "Test Results" if: ${{ always() }} uses: actions/upload-artifact@v4 with: name: swazzler-test-results - path: swazzler-test/functional-tests/build/reports/tests/swazzlerTests/ + path: ./swazzler-test/functional-tests/build/reports/tests/swazzlerTests/