From c846733c1e54bef01797ca91a64deac71d8e8441 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 26 Oct 2021 10:24:20 +1000 Subject: [PATCH 01/19] touch Signed-off-by: Olivier Lamy --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d3c5035..24d3a07 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,4 @@ Excludes from build matrix: - [Workflow syntax](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions) - [Reusing workflows](https://docs.github.com/en/actions/learn-github-actions/reusing-workflows) + From 3b2e802c5cbc76b5470bf7894238f81ba439e9d1 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 26 Oct 2021 02:26:32 +0200 Subject: [PATCH 02/19] Remove release-drafetr from branch v1 (#12) --- .github/release-drafter.yml | 75 --------------------------- .github/workflows/release-drafter.yml | 30 ----------- 2 files changed, 105 deletions(-) delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 3b06870..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,75 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter -name-template: $NEXT_PATCH_VERSION -tag-template: $NEXT_PATCH_VERSION -version-template: $MAJOR.$MINOR.$PATCH - -# Emoji reference: https://gitmoji.carloscuesta.me/ -categories: - - title: ":boom: Breaking changes" - labels: - - breaking - - title: 🚨 Removed - label: removed - - title: ":tada: Major features and improvements" - labels: - - major-enhancement - - major-rfe - - title: 🐛 Major bug fixes - labels: - - major-bug - - title: ⚠️ Deprecated - label: deprecated - - title: 🚀 New features and improvements - labels: - - enhancement - - feature - - rfe - - title: 🐛 Bug Fixes - labels: - - bug - - fix - - bugfix - - regression - - title: ":construction_worker: Changes for plugin developers" - labels: - - developer - # Default label used by Dependabot - - title: 📦 Dependency updates - label: dependencies - - title: 📝 Documentation updates - label: documentation - - title: 👻 Maintenance - labels: - - chore - - internal - - maintenance - - title: 🚦 Tests - labels: - - test - - tests -exclude-labels: - - reverted - - no-changelog - - skip-changelog - - invalid - -template: | - - $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index e063da2..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,30 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -name: Release Drafter -on: - push: - branches: - - main - -jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5.15.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From a3240da502c4b508b55af8cf8d954bec70c8be1b Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 26 Oct 2021 02:27:10 +0200 Subject: [PATCH 03/19] Rename workflow to maven-verify (#11) --- .../{maven-verify-with-its-test.yml => maven-verify-test.yml} | 4 ++-- .../workflows/{maven-verify-with-its.yml => maven-verify.yml} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{maven-verify-with-its-test.yml => maven-verify-test.yml} (96%) rename .github/workflows/{maven-verify-with-its.yml => maven-verify.yml} (100%) diff --git a/.github/workflows/maven-verify-with-its-test.yml b/.github/workflows/maven-verify-test.yml similarity index 96% rename from .github/workflows/maven-verify-with-its-test.yml rename to .github/workflows/maven-verify-test.yml index d3833be..50c6609 100644 --- a/.github/workflows/maven-verify-with-its-test.yml +++ b/.github/workflows/maven-verify-test.yml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -name: Verify +name: Verify - Test on: push @@ -23,4 +23,4 @@ jobs: build: name: Verify # for testing purpose you can change to your fork and branch - uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify-with-its.yml@main + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1 diff --git a/.github/workflows/maven-verify-with-its.yml b/.github/workflows/maven-verify.yml similarity index 100% rename from .github/workflows/maven-verify-with-its.yml rename to .github/workflows/maven-verify.yml From 5c5fb604024de4947b5247dda82f3e856ee82528 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Fri, 12 Nov 2021 00:36:24 +0100 Subject: [PATCH 04/19] No persist credentials during git checkout (#17) --- .github/workflows/maven-verify.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index e6e147e..4c961cf 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -79,6 +79,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2.3.4 + with: + persist-credentials: false - name: Set up JDK uses: actions/setup-java@v2.3.1 @@ -116,6 +118,8 @@ jobs: - name: Checkout if: steps.should-run.conclusion == 'success' uses: actions/checkout@v2.3.4 + with: + persist-credentials: false - name: Set up JDK if: steps.should-run.conclusion == 'success' From 3a7f18e23a22152c42afd8c9bc7ce48029349e03 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Nov 2021 11:24:12 +1000 Subject: [PATCH 05/19] Bump actions/checkout from 2.3.4 to 2.4.0 (#19) Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.4.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.4.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 4c961cf..2f84c57 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -78,7 +78,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2.4.0 with: persist-credentials: false @@ -117,7 +117,7 @@ jobs: - name: Checkout if: steps.should-run.conclusion == 'success' - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2.4.0 with: persist-credentials: false From c41cf60c50122d5d191918428f682b00522ae6e6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Nov 2021 02:17:59 +0000 Subject: [PATCH 06/19] Bump actions/setup-java from 2.3.1 to 2.4.0 Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.3.1 to 2.4.0. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v2.3.1...v2.4.0) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 2f84c57..9040cca 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -83,7 +83,7 @@ jobs: persist-credentials: false - name: Set up JDK - uses: actions/setup-java@v2.3.1 + uses: actions/setup-java@v2.4.0 with: java-version: ${{ inputs.ff-jdk }} distribution: ${{ inputs.ff-jdk-distribution }} @@ -123,7 +123,7 @@ jobs: - name: Set up JDK if: steps.should-run.conclusion == 'success' - uses: actions/setup-java@v2.3.1 + uses: actions/setup-java@v2.4.0 with: java-version: ${{ matrix.jdk }} distribution: ${{ matrix.distribution }} From c1a532a62d8eab9d1b1a17890ef866164ed76432 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Wed, 1 Dec 2021 01:16:54 +0100 Subject: [PATCH 07/19] By Default run first build with Java 11 --- .github/workflows/maven-verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 9040cca..2726ae3 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -60,7 +60,7 @@ on: ff-jdk: description: The jdk version used during fail-fast-build job required: false - default: '8' + default: '11' type: string ff-jdk-distribution: From c36420dc33f141914f83a9b4752f485f01ae129e Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sat, 4 Dec 2021 11:28:42 +0100 Subject: [PATCH 08/19] Goals for build step in inputs Some project need be executed with different goals so provide possibility to override it --- .github/workflows/maven-verify-test.yml | 14 +++++++-- .github/workflows/maven-verify.yml | 40 ++++++++++++++++++++----- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven-verify-test.yml b/.github/workflows/maven-verify-test.yml index 50c6609..73ee6f1 100644 --- a/.github/workflows/maven-verify-test.yml +++ b/.github/workflows/maven-verify-test.yml @@ -20,7 +20,17 @@ name: Verify - Test on: push jobs: - build: - name: Verify + + verify-1: + name: Verify 1 + # for testing purpose you can change to your fork and branch + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1 + + verify-2: + name: Verify 2 # for testing purpose you can change to your fork and branch uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1 + with: + ff-goal: test + verify-goal: clean install + verify-fail-fast: false diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 2726ae3..7d1ea19 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -21,9 +21,9 @@ on: workflow_call: inputs: maven_args: - description: The arguments to pass to Maven when building the code + description: The arguments to pass to all Maven commands when building the code required: false - default: -P run-its -D"invoker.streamLogsOnFailures" + default: '-D"invoker.streamLogsOnFailures"' type: string os-matrix: @@ -69,6 +69,31 @@ on: default: 'temurin' type: string + ff-goal: + description: The Maven goal used by fail-fast-build job + required: false + default: '-P run-its verify' + type: string + + verify-goal: + description: The Maven goal used by verfy jobs + required: false + default: '-P run-its verify' + type: string + + verify-site-goal: + description: The Maven goal used by verfy jobs to build site + required: false + default: '-P run-its site' + type: string + + verify-fail-fast: + description: Determinate if verification matrix should fail fast + required: false + default: true + type: boolean + + jobs: # verify build on one node - before matrix will start @@ -90,7 +115,7 @@ jobs: cache: 'maven' - name: Build with Maven - run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} verify + run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-goal }} verify: needs: fail-fast-build @@ -99,7 +124,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: - fail-fast: true + fail-fast: ${{ inputs.verify-fail-fast }} matrix: os: ${{ fromJSON( inputs.os-matrix ) }} jdk: ${{ fromJSON( inputs.jdk-matrix ) }} @@ -112,7 +137,8 @@ jobs: if: > matrix.os != inputs.ff-os || matrix.jdk != inputs.ff-jdk || - matrix.distribution != inputs.ff-jdk-distribution + matrix.distribution != inputs.ff-jdk-distribution || + inputs.verify-goal != inputs.ff-goal run: echo ok - name: Checkout @@ -131,8 +157,8 @@ jobs: - name: Build with Maven if: steps.should-run.conclusion == 'success' - run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} verify + run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.verify-goal }} - name: Build Maven Site if: steps.should-run.conclusion == 'success' - run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} site + run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.verify-site-goal }} From f330b6a0891abd7eb1df137f1778611d9fb36a42 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Thu, 9 Dec 2021 19:55:08 +0100 Subject: [PATCH 09/19] Improve verification of site building - add site build to fail-fast-build - build site with profile reporting - skip test during site build, it is done in the same workspace so report from test execution will be present --- .github/workflows/maven-verify.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 7d1ea19..71f3208 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -75,6 +75,12 @@ on: default: '-P run-its verify' type: string + ff-site-goal: + description: The Maven goal used by fail-fast-build job to build site + required: false + default: '-DskipTests -P reporting site' + type: string + verify-goal: description: The Maven goal used by verfy jobs required: false @@ -84,7 +90,7 @@ on: verify-site-goal: description: The Maven goal used by verfy jobs to build site required: false - default: '-P run-its site' + default: '-DskipTests -P reporting site' type: string verify-fail-fast: @@ -117,6 +123,10 @@ jobs: - name: Build with Maven run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-goal }} + - name: Build Maven Site + run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-site-goal }} + + verify: needs: fail-fast-build name: ${{ matrix.os }} jdk-${{ matrix.jdk }}-${{ matrix.distribution }} @@ -138,7 +148,8 @@ jobs: matrix.os != inputs.ff-os || matrix.jdk != inputs.ff-jdk || matrix.distribution != inputs.ff-jdk-distribution || - inputs.verify-goal != inputs.ff-goal + inputs.verify-goal != inputs.ff-goal || + inputs.verify-site-goal != inputs.ff-site-goal run: echo ok - name: Checkout From 7bfc0ee15ca59dbf7d67814aa3420c2f72fe73ae Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Mon, 13 Dec 2021 00:14:57 +0100 Subject: [PATCH 10/19] Temporary disable cache --- .github/workflows/maven-verify.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 71f3208..dbb465e 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -118,7 +118,8 @@ jobs: with: java-version: ${{ inputs.ff-jdk }} distribution: ${{ inputs.ff-jdk-distribution }} - cache: 'maven' +# temporary disable cache - gh issue +# cache: 'maven' - name: Build with Maven run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-goal }} From f5f7f5b885e5eb6671e3e7a0722b5ef16226e038 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Wed, 15 Dec 2021 10:09:44 +0100 Subject: [PATCH 11/19] Restore cache https://github.com/actions/cache/issues/698 --- .github/workflows/maven-verify.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index dbb465e..71f3208 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -118,8 +118,7 @@ jobs: with: java-version: ${{ inputs.ff-jdk }} distribution: ${{ inputs.ff-jdk-distribution }} -# temporary disable cache - gh issue -# cache: 'maven' + cache: 'maven' - name: Build with Maven run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-goal }} From 7d4eed005852dd8dd7ac97cf95a85fe3b9e3fe43 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Dec 2021 02:23:52 +0000 Subject: [PATCH 12/19] Bump actions/setup-java from 2.4.0 to 2.5.0 Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.4.0 to 2.5.0. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v2.4.0...v2.5.0) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 71f3208..b346cb4 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -114,7 +114,7 @@ jobs: persist-credentials: false - name: Set up JDK - uses: actions/setup-java@v2.4.0 + uses: actions/setup-java@v2.5.0 with: java-version: ${{ inputs.ff-jdk }} distribution: ${{ inputs.ff-jdk-distribution }} @@ -160,7 +160,7 @@ jobs: - name: Set up JDK if: steps.should-run.conclusion == 'success' - uses: actions/setup-java@v2.4.0 + uses: actions/setup-java@v2.5.0 with: java-version: ${{ matrix.jdk }} distribution: ${{ matrix.distribution }} From 33a720f24253b5d96fc14f61814191781acafb8d Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sun, 26 Dec 2021 10:32:24 +0100 Subject: [PATCH 13/19] Use Maven wrapper to set up Maven version for build Some project require specific Maven version so let's allow changing default version --- .github/workflows/maven-verify.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index b346cb4..35aa287 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -26,6 +26,12 @@ on: default: '-D"invoker.streamLogsOnFailures"' type: string + maven_version: + description: The Maven version used for builds + required: false + default: '3.8.4' + type: string + os-matrix: description: 'os matrix as json array' required: false @@ -120,8 +126,11 @@ jobs: distribution: ${{ inputs.ff-jdk-distribution }} cache: 'maven' + - name: Set up Maven + run: mvn --errors --batch-mode --show-version wrapper:wrapper "-Dmaven=${{ inputs.maven_version }}" + - name: Build with Maven - run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-goal }} + run: ./mvnw --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-goal }} - name: Build Maven Site run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-site-goal }} @@ -166,10 +175,14 @@ jobs: distribution: ${{ matrix.distribution }} cache: 'maven' + - name: Set up Maven + if: steps.should-run.conclusion == 'success' + run: mvn --errors --batch-mode --show-version wrapper:wrapper "-Dmaven=${{ inputs.maven_version }}" + - name: Build with Maven if: steps.should-run.conclusion == 'success' - run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.verify-goal }} + run: ./mvnw --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.verify-goal }} - name: Build Maven Site if: steps.should-run.conclusion == 'success' - run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.verify-site-goal }} + run: ./mvnw --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.verify-site-goal }} From e8730a5cdcc233f48af773dc0d77a08404763fc8 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Mon, 27 Dec 2021 13:53:27 +0100 Subject: [PATCH 14/19] Use Maven wrapper for fail-fast-build site --- .github/workflows/maven-verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 35aa287..11e49df 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -133,7 +133,7 @@ jobs: run: ./mvnw --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-goal }} - name: Build Maven Site - run: mvn --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-site-goal }} + run: ./mvnw --errors --batch-mode --show-version ${{ inputs.maven_args }} ${{ inputs.ff-site-goal }} verify: From 5c18d5e84741ef1ecc9b7f71bc7caf6dcf0064e5 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sat, 1 Jan 2022 23:07:11 +0100 Subject: [PATCH 15/19] Documentation only on main branch --- README.md | 41 ++--------------------------------------- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 24d3a07..de6909d 100644 --- a/README.md +++ b/README.md @@ -14,45 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. --> -# Apache Maven shared GitHub Actions - +# Apache Maven Shared GitHub Actions # Usage -Create GitHub workflow in project with content: - -```yaml -name: Verify - -on: - push: - branches-ignore: - - dependabot/** - pull_request: - -jobs: - build: - name: Verify - uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify-with-its.yml@main - -``` - -Excludes from build matrix: - -```yaml -... - uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify-with-its.yml@main - with: - matrix-exclude: > - [ - {"jdk": "8"}, # exclude jdk 8 from all builds - {"os": "windows-latest"}, # exclude windows from all builds - {"jdk": "8", "os": "windows-latest"} # exclude jkd 8 on windows - ] -``` - -# Resources - -- [Workflow syntax](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions) -- [Reusing workflows](https://docs.github.com/en/actions/learn-github-actions/reusing-workflows) - +https://github.com/apache/maven-gh-actions-shared/ From 133ae1022e43bd40df5089a9077e9f2243b47afc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 02:29:27 +0000 Subject: [PATCH 16/19] Bump actions/setup-java from 2.5.0 to 3 Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.5.0 to 3. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v2.5.0...v3) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 11e49df..98bc1bc 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -120,7 +120,7 @@ jobs: persist-credentials: false - name: Set up JDK - uses: actions/setup-java@v2.5.0 + uses: actions/setup-java@v3 with: java-version: ${{ inputs.ff-jdk }} distribution: ${{ inputs.ff-jdk-distribution }} @@ -169,7 +169,7 @@ jobs: - name: Set up JDK if: steps.should-run.conclusion == 'success' - uses: actions/setup-java@v2.5.0 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.jdk }} distribution: ${{ matrix.distribution }} From 8bea993a5d272a884ce020836d1b5fe97c770cd9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Mar 2022 02:34:56 +0000 Subject: [PATCH 17/19] Bump actions/checkout from 2.4.0 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 98bc1bc..0bf8119 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -115,7 +115,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v3 with: persist-credentials: false @@ -163,7 +163,7 @@ jobs: - name: Checkout if: steps.should-run.conclusion == 'success' - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v3 with: persist-credentials: false From 436c8e3cf9d601460edf957e5cdbf30fba571c8d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 02:53:14 +0000 Subject: [PATCH 18/19] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 0bf8119..db59dbf 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -115,7 +115,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false @@ -163,7 +163,7 @@ jobs: - name: Checkout if: steps.should-run.conclusion == 'success' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false From 336d1b5975406636a3964866c04553086d7a20e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 02:51:52 +0000 Subject: [PATCH 19/19] Bump actions/setup-java from 3 to 4 Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index db59dbf..965f542 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -120,7 +120,7 @@ jobs: persist-credentials: false - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ inputs.ff-jdk }} distribution: ${{ inputs.ff-jdk-distribution }} @@ -169,7 +169,7 @@ jobs: - name: Set up JDK if: steps.should-run.conclusion == 'success' - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.jdk }} distribution: ${{ matrix.distribution }}