Skip to content

Commit 1ab352f

Browse files
authored
Merge branch 'master' into ports-exposed
2 parents 6becc76 + e122628 commit 1ab352f

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ env:
99
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1010

1111
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
1220
find_gradle_jobs:
1321
runs-on: ubuntu-18.04
1422
outputs:
@@ -34,7 +42,7 @@ jobs:
3442
echo $TASKS
3543
echo "::set-output name=matrix::{\"gradle_args\":$TASKS}"
3644
check:
37-
needs: [find_gradle_jobs]
45+
needs: [find_gradle_jobs, thundra_test_initializer]
3846
strategy:
3947
fail-fast: false
4048
matrix: ${{ fromJson(needs.find_gradle_jobs.outputs.matrix) }}
@@ -53,6 +61,16 @@ jobs:
5361
key: ${{ runner.os }}-gradle-home-${{matrix.gradle_args}}_check-${{ hashFiles('**/*.gradle') }}
5462
- name: Clear existing docker image cache
5563
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 }}
5670
- name: Build and test with Gradle (${{matrix.gradle_args}})
5771
run: |
58-
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}}
72+
./gradlew --no-daemon --continue --scan ${{matrix.gradle_args}} \
73+
$([[ -f $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

azure-pipelines.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@ jobs:
33
- job: azure_pipeline_tests
44
steps:
55

6-
# Run a minimal set of tests in normal Linux pipeline builds
7-
- task: Gradle@2
8-
condition: eq(variables['Agent.OS'], 'Linux')
9-
displayName: Build & test (Linux - minimal core)
10-
env:
11-
AWS_ACCESS_KEY_ID: $(aws.accessKeyId)
12-
AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey)
13-
inputs:
14-
gradleWrapperFile: 'gradlew'
15-
jdkVersionOption: '1.11'
16-
options: "--no-daemon --continue"
17-
tasks: "clean testcontainers:test --tests GenericContainerRuleTest"
18-
publishJUnitResults: true
19-
testResultsFiles: '**/TEST-*.xml'
20-
216
# Run all core tests when running the Windows CI tests
227
- task: Gradle@2
238
condition: eq(variables['Agent.OS'], 'Windows_NT')

0 commit comments

Comments
 (0)