[NR-564988] Trigger dexguard task under condition #1018
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: Android Functional Test Workflows | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "develop", "main" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| functional-plugin-jdk17: | |
| if: ${{ false }} # disable for until tests are resolved | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| check-latest: true | |
| - name: Set up Gradle | |
| uses: gradle/gradle-build-action@v2.4.2 | |
| with: | |
| gradle-version: current | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Stage with Gradle | |
| run: ./gradlew install publish | |
| - name: Build with Gradle | |
| run: ./gradlew :plugins:gradle:functionalTests | |
| - name: Upload build reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-reports | |
| path: plugins/gradle/build/reports/tests/test | |
| if-no-files-found: ignore | |
| retention-days: 5 | |
| functional-plugin-jdk11: | |
| if: ${{ false }} # disable for until tests are resolved | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/gradle-build-action@v2.4.2 | |
| with: | |
| gradle-version: current | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Stage with Gradle | |
| run: ./gradlew install publish | |
| - name: Build with Gradle | |
| id: test-step | |
| run: ./gradlew :plugins:gradle:functionalTests | |
| - name: Upload build reports | |
| # if: failure() && steps.test-step.outcome != 'success' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-reports | |
| path: plugins/gradle/build/reports/ | |
| if-no-files-found: ignore | |
| retention-days: 5 | |
| functional-regressions-jdk11: | |
| if: ${{ false }} # disable for until tests are resolved | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/gradle-build-action@v2.4.2 | |
| with: | |
| gradle-version: current | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Stage with Gradle | |
| run: ./gradlew install publish | |
| - name: Build with Gradle | |
| id: test-step | |
| run: ./gradlew :plugins:gradle:functionalTests --tests "com.newrelic.agent.android.PluginRegressionSpec" -Pregressions | |
| - name: Upload build reports | |
| # if: failure() && steps.test-step.outcome != 'success' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-reports | |
| path: plugins/gradle/build/reports/ | |
| if-no-files-found: ignore | |
| retention-days: 5 | |
| functional-regressions-jdk17: | |
| if: ${{ false }} # disable for until tests are resolved | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| check-latest: true | |
| - name: Set up Gradle | |
| uses: gradle/gradle-build-action@v2.4.2 | |
| with: | |
| gradle-version: current | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Stage with Gradle | |
| run: ./gradlew install publish | |
| - name: Build with Gradle | |
| run: ./gradlew :plugins:gradle:functionalTests --tests "com.newrelic.agent.android.PluginRegressionSpec" -Pregressions | |
| - name: Upload build reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-reports | |
| path: plugins/gradle/build/reports/tests/test | |
| if-no-files-found: ignore | |
| retention-days: 5 |