This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[course issue 33] add jdk verification testing pipeline
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Test all labs on Java 11 | ||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
test-labs-java-11: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Build and test with Maven | ||
run: | | ||
cd lab | ||
./mvnw clean package | ||
- name: Build and test with Gradle | ||
run: | | ||
cd lab | ||
./gradlew clean build |
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,22 @@ | ||
name: Test all labs on Java 17 | ||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
test-labs-java-17: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
- name: Build and test with Maven | ||
run: | | ||
cd lab | ||
./mvnw clean package | ||
- name: Build and test with Gradle | ||
run: | | ||
cd lab | ||
./gradlew clean build |
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: Test all labs on Java 8 | ||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
test-labs-java-8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Build and test with Maven | ||
run: | | ||
cd lab | ||
sed -i 's/<java.version>11<\/java.version>/<java.version>1.8<\/java.version>/g' ./pom.xml | ||
sed -i 's/<java.version>11<\/java.version>/<java.version>1.8<\/java.version>/g' ./30-jdbc-boot-solution/pom.xml | ||
sed -i 's/<java.version>11<\/java.version>/<java.version>1.8<\/java.version>/g' ./33-autoconfig-helloworld/pom.xml | ||
sed -i 's/<java.version>11<\/java.version>/<java.version>1.8<\/java.version>/g' ./33-autoconfig-helloworld-solution/pom.xml | ||
sed -i "s/sourceCompatibility = '11'/sourceCompatibility = '8'/g" ./build.gradle | ||
./mvnw clean package | ||
- name: Build and test with Gradle | ||
run: | | ||
cd lab | ||
./gradlew clean build |