9 Commits

Author SHA1 Message Date
57ca7f1a81 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] <support@github.com>
2023-09-22 08:40:57 +02:00
41e894b5c6 #58 New feature to support repository and token options (#59) 2023-09-22 08:29:12 +02:00
c1ef1c9458 Merge pull request #57 from s4u/docs
Documentation improvements
2023-08-23 23:02:20 +02:00
fe0723070c Documentation improvements 2023-08-23 22:57:55 +02:00
f416ae1666 Merge pull request #56 from s4u/jdk-default
Java 17 as default
2023-08-23 21:25:04 +02:00
428a7bd6a8 Java 17 as default 2023-08-23 21:13:07 +02:00
7b66d0ca2e Merge pull request #55 from s4u/m394
Maven 3.9.4 as default
2023-08-23 20:47:55 +02:00
2dce5ee2b1 Maven 3.9.4 as default 2023-08-23 20:43:44 +02:00
e912d59387 Add the ability to specify ref for checkout action (#52) 2023-08-17 10:59:46 +02:00
3 changed files with 57 additions and 28 deletions

View File

@ -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' ] java: [ '8', '11', '17' ]
maven: [ '3.6.3', '3.8.7', '3.9.2' ] maven: [ '3.8.8', '3.9.4' ]
fail-fast: false fail-fast: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: ./ - uses: ./
with: with:
@ -41,13 +41,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: ./ - uses: ./
with:
java-version: 8
- run: mvn -V validate -Drequire.java=8 -Drequire.maven=3.9.2 - run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.4
shell: bash shell: bash
test-ok: test-ok:

View File

@ -9,37 +9,37 @@ 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)*
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).
- run: mvn -V ...
```
# 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-persist-credentials | persist-credentials | false | | checkout-ref | ref | |
| checkout-repository | repository | ${{ github.repository }} |
| checkout-token | token | ${{ github.token }} |
| 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 +69,7 @@ So we can use for action:
| params | destination | default | | params | destination | default |
|---------------|---------------|---------| |---------------|---------------|---------|
| maven-version | maven-version | 3.9.2 | | maven-version | maven-version | 3.9.4 |
## maven-settings-action ## maven-settings-action
@ -90,7 +90,7 @@ jobs:
strategy: strategy:
matrix: matrix:
maven: [ '3.6.3', '3.8.7', '3.9.2' ] maven: [ '3.8.8', '3.9.4' ]
name: Maven ${{ matrix.maven }} sample name: Maven ${{ matrix.maven }} sample
@ -105,6 +105,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)

View File

@ -21,11 +21,25 @@ inputs:
default: 'false' default: 'false'
required: false required: false
checkout-ref:
description: 'The branch, tag, or SHA of the repository to clone'
required: false
checkout-repository:
description: 'The repository to checkout if not the repository that triggered the action. For use when building GitHub Apps'
required: false
default: ${{ github.repository }}
checkout-token:
description: 'Token to use for checkout if checking out a repository out of scope for GITHUB_TOKEN'
required: false
default: ${{ github.token }}
# 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 +64,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.2' default: '3.9.4'
required: false required: false
# maven settings.xml # maven settings.xml
@ -75,11 +89,14 @@ runs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
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 }}'
repository: '${{ inputs.checkout-repository }}'
token: '${{ inputs.checkout-token }}'
- uses: actions/setup-java@v3 - uses: actions/setup-java@v3
with: with: