mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-16 00:00:14 +08:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c1ef1c9458 | |||
| fe0723070c | |||
| f416ae1666 | |||
| 428a7bd6a8 | |||
| 7b66d0ca2e | |||
| 2dce5ee2b1 | |||
| e912d59387 | |||
| 721df57437 | |||
| 21adf11259 |
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
||||||
java: [ '8', '11', '17' ]
|
java: [ '8', '11', '17' ]
|
||||||
maven: [ '3.6.3', '3.8.7', '3.9.0' ]
|
maven: [ '3.8.8', '3.9.4' ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@ -44,10 +44,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
|
||||||
java-version: 8
|
|
||||||
|
|
||||||
- run: mvn -V validate -Drequire.java=8 -Drequire.maven=3.9.0
|
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.4
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
test-ok:
|
test-ok:
|
||||||
|
|||||||
40
README.md
40
README.md
@ -9,37 +9,35 @@ This is composite action which help to prepare GitHub Actions environment for Ma
|
|||||||
- [stCarolas/setup-maven](https://github.com/marketplace/actions/setup-maven)
|
- [stCarolas/setup-maven](https://github.com/marketplace/actions/setup-maven)
|
||||||
- [s4u/maven-settings-action](https://github.com/marketplace/actions/maven-settings-action)
|
- [s4u/maven-settings-action](https://github.com/marketplace/actions/maven-settings-action)
|
||||||
|
|
||||||
# Contributions
|
:exclamation: You **should not** include above actions in your configuration - in other case those will be **called twice**. :exclamation:
|
||||||
|
|
||||||
- Contributions are welcome!
|
For default values you only need:
|
||||||
- Give :star: - if you want to encourage me to work on a project
|
|
||||||
- Don't hesitate to create issues for new features you dream of or if you suspect some bug
|
|
||||||
|
|
||||||
# Project versioning
|
```yml
|
||||||
|
steps:
|
||||||
|
|
||||||
This project uses [Semantic Versioning](https://semver.org/).
|
- name: Setup Maven Action
|
||||||
We recommended using the latest and specific release version.
|
uses: s4u/setup-maven-action@< version >
|
||||||
|
|
||||||
In order to keep your project dependencies up to date you can watch this repository *(Releases only)*
|
- run: mvn -V ...
|
||||||
or use automatic tools like [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates).
|
```
|
||||||
|
|
||||||
# Params mapping for sub actions
|
# Params mapping for sub actions
|
||||||
|
|
||||||
**Notice** when used this action you should not used mentioned below actions again.
|
|
||||||
|
|
||||||
## checkout
|
## checkout
|
||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|------------------------------|---------------------|---------|
|
|------------------------------|---------------------|---------|
|
||||||
| checkout-fetch-depth | fetch-depth | |
|
| checkout-fetch-depth | fetch-depth | |
|
||||||
| checkout-path | path | |
|
| checkout-path | path | |
|
||||||
|
| checkout-ref | ref | |
|
||||||
| checkout-persist-credentials | persist-credentials | false |
|
| checkout-persist-credentials | persist-credentials | false |
|
||||||
|
|
||||||
## setup-java
|
## setup-java
|
||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|-------------------|--------------|---------|
|
|-------------------|--------------|---------|
|
||||||
| java-version | java-version | |
|
| java-version | java-version | 17 |
|
||||||
| java-distribution | distribution | temurin |
|
| java-distribution | distribution | temurin |
|
||||||
|
|
||||||
## cache
|
## cache
|
||||||
@ -69,7 +67,7 @@ So we can use for action:
|
|||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|---------------|---------------|---------|
|
|---------------|---------------|---------|
|
||||||
| maven-version | maven-version | 3.9.0 |
|
| maven-version | maven-version | 3.9.4 |
|
||||||
|
|
||||||
## maven-settings-action
|
## maven-settings-action
|
||||||
|
|
||||||
@ -90,7 +88,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
maven: [ '3.6.3', '3.8.7', '3.9.0' ]
|
maven: [ '3.8.8', '3.9.4' ]
|
||||||
|
|
||||||
name: Maven ${{ matrix.maven }} sample
|
name: Maven ${{ matrix.maven }} sample
|
||||||
|
|
||||||
@ -105,6 +103,20 @@ jobs:
|
|||||||
- run: mvn -V ...
|
- run: mvn -V ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Contributions
|
||||||
|
|
||||||
|
- Contributions are welcome!
|
||||||
|
- Give :star: - if you want to encourage me to work on a project
|
||||||
|
- Don't hesitate to create issues for new features you dream of or if you suspect some bug
|
||||||
|
|
||||||
|
# Project versioning
|
||||||
|
|
||||||
|
This project uses [Semantic Versioning](https://semver.org/).
|
||||||
|
We recommended using the latest and specific release version.
|
||||||
|
|
||||||
|
In order to keep your project dependencies up to date you can watch this repository *(Releases only)*
|
||||||
|
or use automatic tools like [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates).
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
||||||
|
|||||||
@ -21,11 +21,15 @@ inputs:
|
|||||||
default: 'false'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
checkout-ref:
|
||||||
|
description: 'The branch, tag, or SHA of the repository to clone'
|
||||||
|
required: false
|
||||||
|
|
||||||
# java jdk params
|
# java jdk params
|
||||||
|
|
||||||
java-version:
|
java-version:
|
||||||
description: 'The Java version to set up'
|
description: 'The Java version to set up'
|
||||||
|
default: '17'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
java-distribution:
|
java-distribution:
|
||||||
@ -50,7 +54,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.0'
|
default: '3.9.4'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
# maven settings.xml
|
# maven settings.xml
|
||||||
@ -80,6 +84,7 @@ runs:
|
|||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
path: '${{ inputs.checkout-path }}'
|
path: '${{ inputs.checkout-path }}'
|
||||||
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
||||||
|
ref: '${{ inputs.checkout-ref }}'
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user