Skip to content

Commit

Permalink
ci: Update pipelines to verify compilation on Java 17
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa committed Jan 24, 2022
1 parent 987c9e3 commit 391a058
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8,11]
java: [8,17]
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- name: Setup Java 11 # Move Sonar analysis to Java 11
- name: Setup Java 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'
- name: Maven Sonar
run: mvn ${MAVEN_ARGS} clean install sonar:sonar -Psonar
7 changes: 4 additions & 3 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
java: [11]
java: [17]
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build Project
run: mvn clean install

Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void testSerializeYamlWithAlias() {
.isNotNull()
.hasFieldOrPropertyWithValue("metadata.name", "test-pod-with-alias")
.hasFieldOrPropertyWithValue("spec.nodeSelector.workload", "build")
.hasFieldOrPropertyWithValue("spec.tolerations.size", 1)
.returns(1, p -> p.getSpec().getTolerations().size())
.hasFieldOrPropertyWithValue("spec.securityContext.runAsGroup", 1000L)
.hasFieldOrPropertyWithValue("spec.securityContext.runAsUser", 1000L)
.extracting(Pod::getSpec).extracting(PodSpec::getContainers).asList()
Expand Down Expand Up @@ -311,11 +311,11 @@ void nullValueShouldNotBeOutput() {
.doesNotContain("status")
.contains("spec: \"foo\"");
}

@Test
void quantityQuoting() {
Quantity quantity = Serialization.unmarshal("amount: \"2\"\nformat: \"Gi\"", Quantity.class);
assertThat(Serialization.asYaml(quantity)).isEqualTo("--- \"2Gi\"\n");
}

}

0 comments on commit 391a058

Please sign in to comment.