From 54eb924a6e29f5a96cdc2013b5956771fb2aaac2 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Wed, 9 Aug 2023 09:27:51 -0700 Subject: [PATCH 01/12] ci: fixing ci --- .github/workflows/merge-main.yml | 8 ++++---- .github/workflows/pr-close.yml | 6 ------ .github/workflows/pr-open.yml | 4 ++-- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml index b6c8bbe..c920d5a 100644 --- a/.github/workflows/merge-main.yml +++ b/.github/workflows/merge-main.yml @@ -119,7 +119,7 @@ jobs: cache: "maven" server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.1.0 + - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Core Coverage with: commands: | @@ -161,11 +161,11 @@ jobs: cache: "maven" server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.1.0 + - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Spring Coverage with: commands: | - mvn versions:use-dep-version -DdepVersion=${{ needs.release.outputs.version }} -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml + mvn versions:use-dep-version -DdepVersion='${{ needs.release.outputs.version }}' -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml mvn -B verify -P all-tests checkstyle:checkstyle -Dcheckstyle.skip=false --file pom.xml dir: spring java-cache: maven @@ -179,7 +179,7 @@ jobs: - name: Publish Spring working-directory: ./spring run: | - mvn versions:use-dep-version -DdepVersion=${{ needs.release.outputs.version }} -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml + mvn versions:use-dep-version -DdepVersion='${{ needs.release.outputs.version }}' -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml mvn versions:set -DnewVersion='${{ needs.release.outputs.version }}' -DskipTests -Dtests.skip=true --file pom.xml mvn versions:commit --file pom.xml mvn -B source:jar deploy --file pom.xml diff --git a/.github/workflows/pr-close.yml b/.github/workflows/pr-close.yml index db3f2a3..d827ca3 100644 --- a/.github/workflows/pr-close.yml +++ b/.github/workflows/pr-close.yml @@ -18,8 +18,6 @@ jobs: steps: - name: Checkout branch uses: actions/checkout@v3 - with: - ref: refs/heads/${{ github.head_ref }} - name: Conventional Changelog Update continue-on-error: true @@ -31,12 +29,8 @@ jobs: skip-version-file: "true" skip-commit: "true" git-push: "false" - git-branch: refs/heads/${{ github.head_ref }} skip-on-empty: "false" - - name: Checkout pr - uses: actions/checkout@v3 - - name: Removing dev core uses: paulushcgcj/delete-github-package@1.0.0 continue-on-error: true diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index c5ed214..79876cf 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -161,7 +161,7 @@ jobs: cache: "maven" server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.1.0 + - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Core Coverage with: commands: | @@ -204,7 +204,7 @@ jobs: cache: "maven" server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.1.0 + - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Spring Coverage with: commands: | From cf6dce7a5bd1e27c6edde9084d7becf124e81123 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 10 Aug 2023 07:46:47 -0700 Subject: [PATCH 02/12] chore: testing action --- .github/workflows/pr-open.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 79876cf..1341090 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -176,11 +176,15 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Core - working-directory: ./core - run: | - mvn versions:set -DnewVersion='${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }}' -DskipTests -Dtests.skip=true --file pom.xml - mvn versions:commit - mvn -B source:jar deploy --file pom.xml + uses: paulushcgcj/action-java-publish@v0.0.1 + with: + commands: echo ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} + dir: core + app-version: ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} + java-cache: maven + java-distribution: temurin + java-version: "17" + extra-params: -DskipTests -Dtests.skip=true env: GITHUB_TOKEN: ${{ github.token }} From c6e02e63ae4c4a75033008da092ae5841577d736 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 10 Aug 2023 07:53:54 -0700 Subject: [PATCH 03/12] chore: updating action --- .github/workflows/pr-open.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 1341090..0334940 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -176,7 +176,7 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Core - uses: paulushcgcj/action-java-publish@v0.0.1 + uses: paulushcgcj/action-java-publish@v0.0.2 with: commands: echo ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} dir: core From 7dcae3d5b00735132a520f59574a68854e3dc6db Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 10 Aug 2023 07:57:16 -0700 Subject: [PATCH 04/12] chore: updating dependency --- .github/workflows/pr-open.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 0334940..c2f05dc 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -176,7 +176,7 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Core - uses: paulushcgcj/action-java-publish@v0.0.2 + uses: paulushcgcj/action-java-publish@v0.0.3 with: commands: echo ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} dir: core From 296042497edeb99502e5ab057f387e75ae797ca7 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 10 Aug 2023 08:13:52 -0700 Subject: [PATCH 05/12] chore: updating action version --- .github/workflows/pr-open.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index c2f05dc..f27922a 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -176,7 +176,7 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Core - uses: paulushcgcj/action-java-publish@v0.0.3 + uses: paulushcgcj/action-java-publish@v0.0.4 with: commands: echo ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} dir: core From 7fb7b5ae327c4efe8fb6a915bd6621db206af1ca Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 10 Aug 2023 08:17:00 -0700 Subject: [PATCH 06/12] chore: fixing version --- .github/workflows/pr-open.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index f27922a..d8b7515 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -176,7 +176,7 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Core - uses: paulushcgcj/action-java-publish@v0.0.4 + uses: paulushcgcj/action-java-publish@v0.0.5 with: commands: echo ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} dir: core From 54ac2b9a70d2eca4e8ffb71b3996deb053deb54d Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 10 Aug 2023 10:17:41 -0700 Subject: [PATCH 07/12] ci: updating ci to use action for release --- .github/workflows/merge-main.yml | 26 +++++++++++++++----------- .github/workflows/pr-open.yml | 22 +++++++++++----------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml index c920d5a..ce6f98d 100644 --- a/.github/workflows/merge-main.yml +++ b/.github/workflows/merge-main.yml @@ -134,11 +134,13 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Core - working-directory: ./core - run: | - mvn versions:set -DnewVersion='${{ needs.release.outputs.version }}' -DskipTests -Dtests.skip=true --file pom.xml - mvn versions:commit - mvn -B source:jar deploy --file pom.xml + uses: paulushcgcj/action-java-publish@v0.1.1 + with: + dir: core + app-version: ${{ needs.release.outputs.version }} + extra-params: -DskipTests -Dtests.skip=true + add-sources: true + add-javadoc: true env: GITHUB_TOKEN: ${{ github.token }} @@ -177,11 +179,13 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Spring - working-directory: ./spring - run: | - mvn versions:use-dep-version -DdepVersion='${{ needs.release.outputs.version }}' -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml - mvn versions:set -DnewVersion='${{ needs.release.outputs.version }}' -DskipTests -Dtests.skip=true --file pom.xml - mvn versions:commit --file pom.xml - mvn -B source:jar deploy --file pom.xml + uses: paulushcgcj/action-java-publish@v0.1.1 + with: + commands: mvn versions:use-dep-version -DdepVersion=${{ needs.release.outputs.version }} -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml + dir: spring + app-version: ${{ needs.release.outputs.version }} + extra-params: -DskipTests -Dtests.skip=true + add-sources: true + add-javadoc: true env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index d8b7515..25e097d 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -176,15 +176,13 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Core - uses: paulushcgcj/action-java-publish@v0.0.5 + uses: paulushcgcj/action-java-publish@v0.1.1 with: - commands: echo ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} dir: core app-version: ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} - java-cache: maven - java-distribution: temurin - java-version: "17" extra-params: -DskipTests -Dtests.skip=true + add-sources: true + add-javadoc: true env: GITHUB_TOKEN: ${{ github.token }} @@ -224,11 +222,13 @@ jobs: sonar_project_token: ${{ secrets.SONAR_TOKEN_COMMONS }} - name: Publish Spring - working-directory: ./spring - run: | - mvn versions:use-dep-version -DdepVersion=${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml - mvn versions:set -DnewVersion='${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }}' -DskipTests -Dtests.skip=true --file pom.xml - mvn versions:commit --file pom.xml - mvn -B source:jar deploy --file pom.xml + uses: paulushcgcj/action-java-publish@v0.1.1 + with: + commands: mvn versions:use-dep-version -DdepVersion=${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} -Dincludes=ca.bc.gov.nrs-commons:forest-client-core -DforceVersion=true --file pom.xml + dir: spring + app-version: ${{ needs.pr-validation.outputs.version }}.PR${{ github.event.number }} + extra-params: -DskipTests -Dtests.skip=true + add-sources: true + add-javadoc: true env: GITHUB_TOKEN: ${{ github.token }} From 7336d8daa63dfa9ebe1240a527f381523b2b8f03 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Mon, 14 Aug 2023 13:03:13 -0700 Subject: [PATCH 08/12] docs: adding javadoc --- .github/workflows/pr-open.yml | 6 + .../ca/bc/gov/app/dto/ValidationError.java | 27 +++-- .../gov/app/dto/legacy/ForestClientDto.java | 108 +++++++++++++++++- .../main/java/ca/bc/gov/app/util/LogUtil.java | 5 + 4 files changed, 135 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 25e097d..e21b926 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -183,6 +183,9 @@ jobs: extra-params: -DskipTests -Dtests.skip=true add-sources: true add-javadoc: true + java-cache: maven + java-distribution: temurin + java-version: "17" env: GITHUB_TOKEN: ${{ github.token }} @@ -230,5 +233,8 @@ jobs: extra-params: -DskipTests -Dtests.skip=true add-sources: true add-javadoc: true + java-cache: maven + java-distribution: temurin + java-version: "17" env: GITHUB_TOKEN: ${{ github.token }} diff --git a/core/src/main/java/ca/bc/gov/app/dto/ValidationError.java b/core/src/main/java/ca/bc/gov/app/dto/ValidationError.java index 11a7c8a..d4a23d7 100644 --- a/core/src/main/java/ca/bc/gov/app/dto/ValidationError.java +++ b/core/src/main/java/ca/bc/gov/app/dto/ValidationError.java @@ -1,16 +1,23 @@ package ca.bc.gov.app.dto; -import java.io.Serializable; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; +import io.swagger.v3.oas.annotations.media.Schema; import lombok.With; -@Data +@Schema( + description = "Represents a validation error during submission", + title = "ValidationError", + example = """ + { + "fieldId": "person.name", + "errorMsg": "Name is required" + }""" +) @With -@NoArgsConstructor -@AllArgsConstructor -public class ValidationError implements Serializable { - private String fieldId; - private String errorMsg; +public record ValidationError( + @Schema(description = "The field id that failed validation", example = "person.name") + String fieldId, + @Schema(description = "The error message for that specific field", example = "Name is required") + String errorMsg +) { + } diff --git a/core/src/main/java/ca/bc/gov/app/dto/legacy/ForestClientDto.java b/core/src/main/java/ca/bc/gov/app/dto/legacy/ForestClientDto.java index c24306d..4eca569 100644 --- a/core/src/main/java/ca/bc/gov/app/dto/legacy/ForestClientDto.java +++ b/core/src/main/java/ca/bc/gov/app/dto/legacy/ForestClientDto.java @@ -2,28 +2,130 @@ import ca.bc.gov.app.dto.client.ClientStatusCodeEnum; import ca.bc.gov.app.dto.client.ClientTypeCodeEnum; +import io.swagger.v3.oas.annotations.media.Schema; import java.util.Map; import java.util.stream.Collectors; import java.util.stream.Stream; import org.apache.commons.lang3.StringUtils; +@Schema( + description = "Represents a client from the legacy forest database.", + title = "ForestClient", + example = """ + { + "clientNumber": "00000002", + "clientName": "BAXTER", + "legalFirstName": "", + "legalMiddleName": "", + "clientStatusCode": "ACT", + "clientTypeCode": "I", + "clientIdTypeCode": "C", + "clientIdentification": "00000002", + "registryCompanyTypeCode": "BC", + "corpRegnNmbr": "00000002", + "clientAcronym": "", + "wcbFirmNumber": "", + "ocgSupplierNmbr": "", + "clientComment": "" + }""" +) public record ForestClientDto( + @Schema( + description = "The client number.", + example = "00000002" + ) String clientNumber, + @Schema(description = """ + The client last name if it's an individual or + the company name if it's a company""", + example = "BAXTER" + ) String clientName, + @Schema(description = """ + The first name of the individual, + or null if it's a company""", + example = "JAMES") String legalFirstName, + @Schema(description = """ + The middle name of the individual, + or null if it's a company""", + example = "Canter") String legalMiddleName, + @Schema(description = """ + The status of the client, can be any of the following:
+ + ACT (Active)
+ DAC (Deactivated)
+ DEC (Deceased)
+ REC (Receivership)
+ SPN (Suspended)""", + example = "ACT") String clientStatusCode, + @Schema(description = """ + The type of client, can be any of the following:
+ + A (Association)
+ B (First Nation Band)
+ C (Corporation)
+ F (Ministry of Forests and Range)
+ G (Government)
+ I (Individual)
+ L (Limited Partnership)
+ P (General Partnership)
+ R (First Nation Group)
+ S (Society)
+ T (First Nation Tribal Council)
+ U (Unregistered Company)""", + example = "I") String clientTypeCode, + + @Schema(description = """ + The type of client, can be any of the following:
+ + A (Association)
+ B (First Nation Band)
+ C (Corporation)
+ F (Ministry of Forests and Range)
+ G (Government)
+ I (Individual)
+ L (Limited Partnership)
+ P (General Partnership)
+ R (First Nation Group)
+ S (Society)
+ T (First Nation Tribal Council)
+ U (Unregistered Company)""", + example = "C") String clientIdTypeCode, + @Schema(description = "An ID to identify companies",example = "Wull.") String clientIdentification, + @Schema(description = """ + The type of company, such as:
+ + BC (BC Registered Business)
+ FM (Sole Proprietorship)""", + example = "FM") String registryCompanyTypeCode, + @Schema(description = "Company registration number", + example = "00000002") String corpRegnNmbr, + @Schema(description = "An acronyms for this client", + example = "JAMES BAXTER") String clientAcronym, + @Schema(description = "WCB firm number", + example = "00000002") String wcbFirmNumber, + @Schema(description = "OCG supplier number", + example = "00000002") String ocgSupplierNmbr, + @Schema(description = "A comment for this client", + example = "This is a comment") String clientComment ) { + /** + * Returns the legal name of the client already formatted + * @return A string with the legal name + */ public String legalName() { if (StringUtils.defaultString(clientTypeCode).equalsIgnoreCase("I")) { return @@ -38,6 +140,10 @@ public String legalName() { return StringUtils.defaultString(clientName); } + /** + * Returns a map with the client information + * @return A map with the client information + */ public Map description() { return Map.of( @@ -47,7 +153,7 @@ public Map description() { "type", ClientTypeCodeEnum.valueOf(clientTypeCode), "identifier", StringUtils.defaultString(registryCompanyTypeCode) + - StringUtils.defaultString(corpRegnNmbr) + StringUtils.defaultString(corpRegnNmbr) ); } } \ No newline at end of file diff --git a/core/src/main/java/ca/bc/gov/app/util/LogUtil.java b/core/src/main/java/ca/bc/gov/app/util/LogUtil.java index 9dcc8d9..6f090d7 100644 --- a/core/src/main/java/ca/bc/gov/app/util/LogUtil.java +++ b/core/src/main/java/ca/bc/gov/app/util/LogUtil.java @@ -6,8 +6,13 @@ import org.slf4j.Logger; import org.slf4j.event.Level; +/** + *

Log Util

+ *

Utility class for logging.

+ */ @NoArgsConstructor(access = AccessLevel.PRIVATE) public class LogUtil { + /** *

Log Content

* Log the content of the future at the specified level. From 36a0456ce4ba965f4c733fa3f5480c09e1c2b663 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 15 Aug 2023 04:46:56 -0700 Subject: [PATCH 09/12] fix: changing compiler version --- core/pom.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/pom.xml b/core/pom.xml index dae1c08..f100705 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -84,6 +84,15 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + ${java.version} + ${java.version} + + org.apache.maven.plugins maven-surefire-plugin From ce2c6d96740dca91104d7cac7483a2c84e2c828d Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 15 Aug 2023 04:55:53 -0700 Subject: [PATCH 10/12] fix: changing compiler version --- core/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pom.xml b/core/pom.xml index f100705..fd4adde 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -169,7 +169,7 @@ maven-javadoc-plugin 3.5.0 - 8 + ${java.version} Javadoc Documentation for ${project.name} ${project.version} ${project.name} ${project.version} From 7df37ec7bbff474d4bf710b67f3e9d2cb70d481b Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 15 Aug 2023 04:56:21 -0700 Subject: [PATCH 11/12] fix: changing compiler version --- spring/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring/pom.xml b/spring/pom.xml index b6e165b..ff759e7 100644 --- a/spring/pom.xml +++ b/spring/pom.xml @@ -331,7 +331,7 @@ maven-javadoc-plugin 3.5.0 - 8 + ${java.version} Javadoc Documentation for ${project.name} ${project.version} ${project.name} ${project.version} From 7939bdb22a2517016d6e1b2afd71481b6378d9fd Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 15 Aug 2023 05:54:30 -0700 Subject: [PATCH 12/12] ci: updating ci config --- .github/workflows/merge-main.yml | 16 ---------------- .github/workflows/pr-open.yml | 22 ---------------------- 2 files changed, 38 deletions(-) diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml index ce6f98d..03ddca7 100644 --- a/.github/workflows/merge-main.yml +++ b/.github/workflows/merge-main.yml @@ -111,14 +111,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup JDK 17 - uses: actions/setup-java@v3 - with: - java-version: "17" - distribution: "temurin" - cache: "maven" - server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Core Coverage with: @@ -155,14 +147,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup JDK 17 - uses: actions/setup-java@v3 - with: - java-version: "17" - distribution: "temurin" - cache: "maven" - server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Spring Coverage with: diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index e21b926..ae809ae 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -153,14 +153,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup JDK 17 - uses: actions/setup-java@v3 - with: - java-version: "17" - distribution: "temurin" - cache: "maven" - server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Core Coverage with: @@ -183,9 +175,6 @@ jobs: extra-params: -DskipTests -Dtests.skip=true add-sources: true add-javadoc: true - java-cache: maven - java-distribution: temurin - java-version: "17" env: GITHUB_TOKEN: ${{ github.token }} @@ -201,14 +190,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup JDK 17 - uses: actions/setup-java@v3 - with: - java-version: "17" - distribution: "temurin" - cache: "maven" - server-id: "github" - - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 name: Spring Coverage with: @@ -233,8 +214,5 @@ jobs: extra-params: -DskipTests -Dtests.skip=true add-sources: true add-javadoc: true - java-cache: maven - java-distribution: temurin - java-version: "17" env: GITHUB_TOKEN: ${{ github.token }}