forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamic CI jobs for examples (testcontainers#2677)
- Loading branch information
Showing
7 changed files
with
137 additions
and
50 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/ci-dind.yml → .github/workflows/ci-docker-wormhole.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: in-container | ||
name: CI-Docker-Wormhole | ||
|
||
on: | ||
pull_request: {} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: CI-Examples | ||
|
||
on: | ||
pull_request: {} | ||
push: { branches: [ master ] } | ||
|
||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
jobs: | ||
find_gradle_jobs: | ||
runs-on: ubuntu-18.04 | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '1.8' | ||
- name: Cache Gradle Home files | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-home-testmatrix-examples-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-home-testmatrix-examples- | ||
${{ runner.os }}-gradle-home- | ||
- id: set-matrix | ||
working-directory: ./examples/ | ||
env: | ||
# Since we override the tests executor, | ||
# we should not push empty results to the cache | ||
READ_ONLY_REMOTE_GRADLE_CACHE: true | ||
run: | | ||
TASKS=$(./gradlew --no-daemon --parallel -q testMatrix) | ||
echo $TASKS | ||
echo "::set-output name=matrix::{\"gradle_args\":$TASKS}" | ||
check: | ||
needs: find_gradle_jobs | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJson(needs.find_gradle_jobs.outputs.matrix) }} | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '1.8' | ||
- name: Cache Gradle Home files | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-home-examples-${{matrix.gradle_args}}_check-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-home-examples-${{matrix.gradle_args}}_check- | ||
${{ runner.os }}-gradle-home-examples-${{matrix.gradle_args}}_check- | ||
${{ runner.os }}-gradle-home-examples- | ||
- name: Clear existing docker image cache | ||
run: docker image prune -af | ||
- name: Build and test Examples with Gradle (${{matrix.gradle_args}}) | ||
working-directory: ./examples/ | ||
run: | | ||
./gradlew --no-daemon --continue --scan --info ${{matrix.gradle_args}} | ||
- name: Aggregate Examples test reports with ciMate | ||
if: always() | ||
env: | ||
CIMATE_PROJECT_ID: 2348n4vl | ||
CIMATE_CI_KEY: "Examples / ${{ runner.os }} / ${{matrix.gradle_args}}" | ||
run: | | ||
wget -q https://get.cimate.io/release/linux/cimate | ||
chmod +x cimate | ||
./cimate "**/TEST-*.xml" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
// empty build.gradle for dependabot | ||
apply from: "$rootDir/../gradle/ci-support.gradle" | ||
|
||
subprojects { | ||
apply plugin:"java" | ||
} |
This file contains 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
This file contains 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
This file contains 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