mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-17 00:00:10 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f53a7669c | |||
| 1bea7e41c5 | |||
| 816f5e6ba8 | |||
| 25553285e3 |
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -19,13 +19,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
||||||
java: [ '8', '11', '17', '21' ]
|
java: [ '8', '11', '17', '21' ]
|
||||||
maven: [ '3.8.8', '3.9.6' ]
|
maven: [ '3.8.8', '3.9.8' ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
@ -41,11 +41,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
|
|
||||||
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.6
|
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.8
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
test-ok:
|
test-ok:
|
||||||
|
|||||||
@ -70,7 +70,7 @@ So we can use for action:
|
|||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|---------------|---------------|---------|
|
|---------------|---------------|---------|
|
||||||
| maven-version | maven-version | 3.9.6 |
|
| maven-version | maven-version | 3.9.8 |
|
||||||
|
|
||||||
## maven-settings-action
|
## maven-settings-action
|
||||||
|
|
||||||
@ -81,6 +81,7 @@ So we can use for action:
|
|||||||
| settings-properties | properties |
|
| settings-properties | properties |
|
||||||
| settings-sonatypeSnapshots | sonatypeSnapshots |
|
| settings-sonatypeSnapshots | sonatypeSnapshots |
|
||||||
| settings-proxies | proxies |
|
| settings-proxies | proxies |
|
||||||
|
| settings-repositories | repositories |
|
||||||
|
|
||||||
# Testing against different Maven versions
|
# Testing against different Maven versions
|
||||||
|
|
||||||
@ -92,7 +93,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
maven: [ '3.8.8', '3.9.6' ]
|
maven: [ '3.8.8', '3.9.8' ]
|
||||||
|
|
||||||
name: Maven ${{ matrix.maven }} sample
|
name: Maven ${{ matrix.maven }} sample
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@ inputs:
|
|||||||
# maven version
|
# maven version
|
||||||
maven-version:
|
maven-version:
|
||||||
description: 'The Maven version to set up'
|
description: 'The Maven version to set up'
|
||||||
default: '3.9.6'
|
default: '3.9.8'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
# maven settings.xml
|
# maven settings.xml
|
||||||
@ -93,12 +93,16 @@ inputs:
|
|||||||
description: 'proxies definition in json array, e.g.: [{"id": "http-proxy", "active": "true", "protocol": "http", "host": "host", "port": "port", "nonProxyHosts": "host1|host2"}]'
|
description: 'proxies definition in json array, e.g.: [{"id": "http-proxy", "active": "true", "protocol": "http", "host": "host", "port": "port", "nonProxyHosts": "host1|host2"}]'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
settings-repositories:
|
||||||
|
description: 'repository settings definition in json array, e.g.: [ { "id": "repoId","name": "repoName","url": "url","snapshots": { "enabled": true } } ]'
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
path: '${{ inputs.checkout-path }}'
|
path: '${{ inputs.checkout-path }}'
|
||||||
@ -139,3 +143,4 @@ runs:
|
|||||||
properties: '${{ inputs.settings-properties }}'
|
properties: '${{ inputs.settings-properties }}'
|
||||||
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots }}'
|
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots }}'
|
||||||
proxies: '${{ inputs.settings-proxies }}'
|
proxies: '${{ inputs.settings-proxies }}'
|
||||||
|
repositories: '${{ inputs.settings-repositories }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user