diff --git a/.github/workflows/compose-maven-verify.yaml b/.github/workflows/compose-maven-verify.yaml index c0b45c8..d55ca73 100644 --- a/.github/workflows/compose-maven-verify.yaml +++ b/.github/workflows/compose-maven-verify.yaml @@ -84,6 +84,11 @@ on: required: false default: "" type: string + MVN_GLOBAL_SETTINGS: + description: "Maven global settings configuration." + required: false + default: ${{ vars.GLOBAL_SETTINGS }} + type: string ENV_VARS: # yamllint disable-line rule:line-length description: "Pass GitHub variables to be exported as environment variables via `toJSON(vars)` or specific variables encoded in JSON format" @@ -128,4 +133,4 @@ jobs: mvn-profiles: ${{ inputs.MVN_PROFILES }} env-vars: ${{ inputs.ENV_VARS }} env-secrets: ${{ inputs.ENV_SECRETS }} - global-settings: ${{ vars.GLOBAL_SETTINGS }} + global-settings: ${{ inputs.MVN_GLOBAL_SETTINGS }} diff --git a/.github/workflows/zzci-test-verify-maven.yaml b/.github/workflows/zzci-test-verify-maven.yaml new file mode 100644 index 0000000..db3ba8e --- /dev/null +++ b/.github/workflows/zzci-test-verify-maven.yaml @@ -0,0 +1,17 @@ +--- +# SPDX-License-Identifier: Apache-2.0 +# SPDX-FileCopyrightText: 2024 The Linux Foundation + +name: Verify Maven Workflows + +# yamllint disable-line rule:truthy +on: [push, pull_request] + +jobs: + test-maven-verify: + uses: ./.github/workflows/compose-maven-verify.yaml + with: + GERRIT_BRANCH: ${{ github.ref }} + GERRIT_CHANGE_ID: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b + MVN_POM_FILE: test/maven-project/pom.xml + MVN_GLOBAL_SETTINGS: "" diff --git a/test/maven-project/pom.xml b/test/maven-project/pom.xml new file mode 100644 index 0000000..7acafa9 --- /dev/null +++ b/test/maven-project/pom.xml @@ -0,0 +1,11 @@ + + + 4.0.0 + + org.linuxfoundation.test + maven-test-app + 1 +