-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Spring Boot & Gradle Wrapper versions across the board (#615)
* Upgrade Spring Boot & Gradle Wrapper versions across the board Signed-off-by: Daniel Mikusa <[email protected]> * WIP: move to having a single test suite per application Signed-off-by: Daniel Mikusa <[email protected]> * test with akka * Upgrade pack cli version for smoke tests * Make Java Smoke Test PR workflow generic * so that it can be used for every Java samples * Add Java native to new smoke_test layout * Add Java Node to new smoke_test layout * Make "test-all-samples" find java modules * Add failfast to embedded shell scripts * Adapt to new jammy builders names --------- Signed-off-by: Daniel Mikusa <[email protected]> Co-authored-by: Anthony Dahanne <[email protected]>
- Loading branch information
1 parent
7a9be55
commit a7f57b8
Showing
91 changed files
with
2,400 additions
and
1,068 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: java-quarkus-native-image-maven | ||
"on": | ||
merge_group: | ||
pull_request: | ||
paths: | ||
- java/native-image/quarkus-native-image-maven/** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- java/native-image/quarkus-native-image-maven/** | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [17] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
- run: ./mvnw -B package -Djava.version=${{ matrix.java }} | ||
working-directory: java/native-image/quarkus-native-image-maven |
27 changes: 27 additions & 0 deletions
27
.github/workflows/java-spring-boot-native-image-gradle.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: java-spring-boot-native-image-gradle | ||
"on": | ||
merge_group: | ||
pull_request: | ||
paths: | ||
- java/native-image/spring-boot-native-image-gradle/** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- java/native-image/spring-boot-native-image-gradle/** | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [17] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
- run: ./gradlew build | ||
working-directory: java/native-image/spring-boot-native-image-gradle |
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,27 @@ | ||
name: java-spring-boot-native-image-maven | ||
"on": | ||
merge_group: | ||
pull_request: | ||
paths: | ||
- java/native-image/spring-boot-native-image-maven/** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- java/native-image/spring-boot-native-image-maven/** | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [17] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
- run: ./mvnw -B package -Djava.version=${{ matrix.java }} | ||
working-directory: java/native-image/spring-boot-native-image-maven |
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,61 +0,0 @@ | ||
name: Test Pull Request (Java Native Image) | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'java/native-image/**' | ||
|
||
jobs: | ||
smoke: | ||
name: Smoke Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.18.x | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache local Gradle repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('java/**/*.gradle*', 'java/**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
~/.m2/wrapper | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', 'java/**/maven-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Setup Directories | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
mkdir -p ~/.m2/repository | ||
mkdir -p ~/.m2/repository/wrapper/dists | ||
mkdir -p ~/.gradle/caches | ||
mkdir -p ~/.gradle/wrapper/dists | ||
chmod -R 775 ~/.m2 | ||
chmod -R 775 ~/.gradle | ||
- name: Test Java Native Image Samples | ||
run: | | ||
./scripts/smoke.sh --suite java/native-image \ | ||
--builder paketobuildpacks/builder-jammy-full:latest \ | ||
--builder paketobuildpacks/builder-jammy-base:latest \ | ||
--builder paketobuildpacks/builder-jammy-tiny:latest | ||
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,60 +0,0 @@ | ||
name: Test Pull Request (Java-Node) | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'java/java-node/**' | ||
|
||
jobs: | ||
smoke: | ||
name: Smoke Tests Java-Node | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.18.x | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache local Gradle repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('java/**/*.gradle*', 'java/**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
~/.m2/wrapper | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', 'java/**/maven-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Setup Directories | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
mkdir -p ~/.m2/repository | ||
mkdir -p ~/.m2/repository/wrapper/dists | ||
mkdir -p ~/.gradle/caches | ||
mkdir -p ~/.gradle/wrapper/dists | ||
chmod -R 775 ~/.m2 | ||
chmod -R 775 ~/.gradle | ||
- name: Test Java-Node Samples | ||
run: | | ||
./scripts/smoke.sh --suite java/java-node \ | ||
--builder paketobuildpacks/builder-jammy-full:latest \ | ||
--builder paketobuildpacks/builder-jammy-base:latest \ | ||
Oops, something went wrong.