Skip to content

Commit

Permalink
parallel ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tschuehly committed Nov 2, 2023
1 parent 7db0c8c commit 1a802eb
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 69 deletions.
69 changes: 60 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches: [ main ]
jobs:
test:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -13,36 +13,86 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: make gradle executable
run: chmod +x ./gradlew
- name: publishToMavenLocal
run: ./gradlew :core:publishToMavenLocal :thymeleaf:publishToMavenLocal :jte:publishToMavenLocal :jte-compiler:publishToMavenLocal
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
test-thymeleaf-kotlin:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: run thymeleaf kotlin tests
run: |
cd ./examples/thymeleaf-kotlin-example
chmod +x ./gradlew
./gradlew test
test-thymeleaf-java:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: run thymeleaf java tests
run: |
cd ./examples/thymeleaf-java-example
chmod +x ./mvnw
./mvnw test
chmod +x ./mvnw
./mvnw test
- name: run kte kotlin tests
run: |
cd ./examples/kte-example
chmod +x ./gradlew
./gradlew test
test-jte:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: run jte java tests
run: |
cd ./examples/jte-example
chmod +x ./gradlew
./gradlew test
chmod +x ./mvnw
./mvnw test
test-kte:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: run kte kotlin tests
run: |
cd ./examples/kte-example
chmod +x ./gradlew
./gradlew test
publish:
needs: test
needs: [test-jte,test-kte, test-thymeleaf-kotlin,test-thymeleaf-java]
if: github.ref_type == 'tag' || contains(github.ref_name, 'SNAPSHOT')
runs-on: ubuntu-latest
steps:
Expand All @@ -52,6 +102,7 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew
- name: Publish thymeleaf package to staging
Expand Down
30 changes: 15 additions & 15 deletions examples/jte-example/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
rootProject.name = "jte-example"
includeBuild("..\\..\\jte\\jte"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-jte")).using(project(":"))
}
}
includeBuild("..\\..\\jte\\jte-compiler"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
}
}
includeBuild("..\\..\\core"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
}
}
//includeBuild("..\\..\\jte\\jte"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-jte")).using(project(":"))
// }
//}
//includeBuild("..\\..\\jte\\jte-compiler"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
// }
//}
//includeBuild("..\\..\\core"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
// }
//}
30 changes: 15 additions & 15 deletions examples/kte-example/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
rootProject.name = "kte-example"

includeBuild("..\\..\\jte\\jte"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-jte")).using(project(":"))
}
}
includeBuild("..\\..\\jte\\jte-compiler"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
}
}
includeBuild("..\\..\\core"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
}
}
//includeBuild("..\\..\\jte\\jte"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-jte")).using(project(":"))
// }
//}
//includeBuild("..\\..\\jte\\jte-compiler"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
// }
//}
//includeBuild("..\\..\\core"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
// }
//}
30 changes: 15 additions & 15 deletions examples/thymeleaf-java-example/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
rootProject.name = "thymeleaf-java-example"
includeBuild("..\\..\\thymeleaf"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-thymeleaf")).using(project(":"))
}
}
includeBuild("..\\..\\core"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
}
}
includeBuild("..\\..\\jte\\jte-compiler"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
}
}
//includeBuild("..\\..\\thymeleaf"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-thymeleaf")).using(project(":"))
// }
//}
//includeBuild("..\\..\\core"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
// }
//}
//includeBuild("..\\..\\jte\\jte-compiler"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
// }
//}
30 changes: 15 additions & 15 deletions examples/thymeleaf-kotlin-example/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
rootProject.name = "thymeleaf-kotlin-example"

includeBuild("..\\..\\thymeleaf"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-thymeleaf")).using(project(":"))
}
}
includeBuild("..\\..\\core"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
}
}
includeBuild("..\\..\\jte\\jte-compiler"){
dependencySubstitution {
substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
}
}
//includeBuild("..\\..\\thymeleaf"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-thymeleaf")).using(project(":"))
// }
//}
//includeBuild("..\\..\\core"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-core")).using(project(":"))
// }
//}
//includeBuild("..\\..\\jte\\jte-compiler"){
// dependencySubstitution {
// substitute(module("de.tschuehly:spring-view-component-jte-compiler")).using(project(":"))
// }
//}

0 comments on commit 1a802eb

Please sign in to comment.