File attachment integration branch #306
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Run swazzler-tests" | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| ANDROID_BUILD_TOOLS_HOME: "/usr/local/lib/android/sdk/build-tools/35.0.0" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| runSwazzlerTests: | |
| name: "Run Gradle Tests" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'adopt' | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Cache NDK | |
| id: ndk-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /usr/local/lib/android/sdk/ndk/27.0.12077973 | |
| key: ndk-cache | |
| - name: Install NDK | |
| if: steps.ndk-cache.outputs.cache-hit != 'true' | |
| run: | | |
| echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;27.0.12077973" | |
| echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "cmake;3.10.2.4988404" | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: Checkout Swazzler | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: embrace-io/embrace-swazzler3 | |
| path: ./embrace-swazzler3 | |
| token: ${{ secrets.GH_ANDROID_SDK_TOKEN }} | |
| - name: "Run Integration Tests" | |
| working-directory: ./embrace-swazzler3 | |
| run: ./gradlew :embrace-gradle-plugin-integration-tests:test --stacktrace | |
| - name: "Test Results" | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: swazzler-test-results | |
| path: | | |
| ./embrace-swazzler3/embrace-gradle-plugin-integration-tests/build/reports/tests/test |