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