Skip to content

Commit

Permalink
embr-4611 Fixed running subset of swazzler tests failing (#1278)
Browse files Browse the repository at this point in the history
* 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 <cesar.roman@embrace.io>
Co-authored-by: Hanson Ho <hanson.ho@embrace.io>
Co-authored-by: Vitaliy <vitaliyf@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 21, 2024
1 parent dce909e commit ba0eb43
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/swazzler-tests-subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit ba0eb43

Please sign in to comment.