Skip to content

Commit

Permalink
Remove thundra from ci.yml (#5850)
Browse files Browse the repository at this point in the history
Using thundra breaks the gradle cache in `master` branch.
  • Loading branch information
eddumelendez committed Sep 17, 2022
1 parent 9e98add commit 22aa85d
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/ci.yml
Expand Up @@ -14,14 +14,6 @@ env:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}

jobs:
thundra_test_initializer:
runs-on: ubuntu-latest
outputs:
thundra_agent_testrun_id: ${{ steps.thundra_test_initializer.outputs.thundra_agent_testrun_id }}
steps:
- uses: actions/checkout@v3
- id: thundra_test_initializer
uses: thundra-io/thundra-test-init-action@v1
find_gradle_jobs:
runs-on: ubuntu-18.04
outputs:
Expand All @@ -47,7 +39,7 @@ jobs:
echo $TASKS
echo "::set-output name=matrix::{\"gradle_args\":$TASKS}"
check:
needs: [find_gradle_jobs, thundra_test_initializer]
needs: [find_gradle_jobs]
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.find_gradle_jobs.outputs.matrix) }}
Expand All @@ -66,16 +58,6 @@ jobs:
key: ${{ runner.os }}-gradle-home-${{matrix.gradle_args}}_check-${{ hashFiles('**/*.gradle') }}
- name: Clear existing docker image cache
run: docker image prune -af
- name: Thundra Gradle Test Instrumentation
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: thundra-io/thundra-gradle-test-action@v1
with:
apikey: ${{ secrets.THUNDRA_API_KEY }}
project_id: ${{ secrets.THUNDRA_PROJECT_ID }}
- name: Build and test with Gradle (${{matrix.gradle_args}})
run: |
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}} \
$([[ -f $THUNDRA_GRADLE_INIT_SCRIPT_PATH ]] && echo "--init-script $THUNDRA_GRADLE_INIT_SCRIPT_PATH")
env:
THUNDRA_AGENT_TEST_RUN_ID: ${{ needs.thundra_test_initializer.outputs.thundra_agent_testrun_id }}
THUNDRA_AGENT_REPORT_REST_BASEURL: https://collector.thundra.us/v1
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}}

0 comments on commit 22aa85d

Please sign in to comment.