|
14 | 14 | GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
|
15 | 15 |
|
16 | 16 | jobs:
|
17 |
| - thundra_test_initializer: |
18 |
| - runs-on: ubuntu-latest |
19 |
| - outputs: |
20 |
| - thundra_agent_testrun_id: ${{ steps.thundra_test_initializer.outputs.thundra_agent_testrun_id }} |
21 |
| - steps: |
22 |
| - - uses: actions/checkout@v3 |
23 |
| - - id: thundra_test_initializer |
24 |
| - uses: thundra-io/thundra-test-init-action@v1 |
25 | 17 | find_gradle_jobs:
|
26 | 18 | runs-on: ubuntu-18.04
|
27 | 19 | outputs:
|
|
47 | 39 | echo $TASKS
|
48 | 40 | echo "::set-output name=matrix::{\"gradle_args\":$TASKS}"
|
49 | 41 | check:
|
50 |
| - needs: [find_gradle_jobs, thundra_test_initializer] |
| 42 | + needs: [find_gradle_jobs] |
51 | 43 | strategy:
|
52 | 44 | fail-fast: false
|
53 | 45 | matrix: ${{ fromJson(needs.find_gradle_jobs.outputs.matrix) }}
|
|
66 | 58 | key: ${{ runner.os }}-gradle-home-${{matrix.gradle_args}}_check-${{ hashFiles('**/*.gradle') }}
|
67 | 59 | - name: Clear existing docker image cache
|
68 | 60 | run: docker image prune -af
|
69 |
| - - name: Thundra Gradle Test Instrumentation |
70 |
| - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} |
71 |
| - uses: thundra-io/thundra-gradle-test-action@v1 |
72 |
| - with: |
73 |
| - apikey: ${{ secrets.THUNDRA_API_KEY }} |
74 |
| - project_id: ${{ secrets.THUNDRA_PROJECT_ID }} |
75 | 61 | - name: Build and test with Gradle (${{matrix.gradle_args}})
|
76 | 62 | run: |
|
77 |
| - ./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}} \ |
78 |
| - $([[ -f $THUNDRA_GRADLE_INIT_SCRIPT_PATH ]] && echo "--init-script $THUNDRA_GRADLE_INIT_SCRIPT_PATH") |
79 |
| - env: |
80 |
| - THUNDRA_AGENT_TEST_RUN_ID: ${{ needs.thundra_test_initializer.outputs.thundra_agent_testrun_id }} |
81 |
| - THUNDRA_AGENT_REPORT_REST_BASEURL: https://collector.thundra.us/v1 |
| 63 | + ./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}} |
0 commit comments