3 Commits

Author SHA1 Message Date
fa2c7e4517 Merge pull request #64 from s4u/mvn-3.9.5
Maven 3.9.5 as default
2023-11-23 17:52:07 +01:00
78d72295d8 Maven 3.9.5 as default 2023-11-23 17:49:38 +01:00
5727e29093 Added toggle for cache 2023-11-23 17:38:21 +01:00
3 changed files with 13 additions and 6 deletions

View File

@ -18,8 +18,8 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ] os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
java: [ '8', '11', '17' ] java: [ '8', '11', '17', '21' ]
maven: [ '3.8.8', '3.9.4' ] maven: [ '3.8.8', '3.9.5' ]
fail-fast: false fail-fast: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -45,7 +45,7 @@ jobs:
- uses: ./ - uses: ./
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.4 - run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.5
shell: bash shell: bash
test-ok: test-ok:

View File

@ -60,6 +60,7 @@ So we can use for action:
| params | description | | params | description |
|----------------|----------------------------------------------------------| |----------------|----------------------------------------------------------|
| cache-enabled | enable cache. Default true |
| cache-path | default cache path for Maven with value ~/.m2/repository | | cache-path | default cache path for Maven with value ~/.m2/repository |
| cache-path-add | additional value for cache path | | cache-path-add | additional value for cache path |
| cache-prefix | prefix value for `key` and `restore-keys` cache params | | cache-prefix | prefix value for `key` and `restore-keys` cache params |
@ -69,7 +70,7 @@ So we can use for action:
| params | destination | default | | params | destination | default |
|---------------|---------------|---------| |---------------|---------------|---------|
| maven-version | maven-version | 3.9.4 | | maven-version | maven-version | 3.9.5 |
## maven-settings-action ## maven-settings-action
@ -90,7 +91,7 @@ jobs:
strategy: strategy:
matrix: matrix:
maven: [ '3.8.8', '3.9.4' ] maven: [ '3.8.8', '3.9.5' ]
name: Maven ${{ matrix.maven }} sample name: Maven ${{ matrix.maven }} sample

View File

@ -48,6 +48,11 @@ inputs:
required: false required: false
# cache # cache
cache-enabled:
description: 'Enable cache'
default: 'true'
required: false
cache-prefix: cache-prefix:
description: 'Cache key prefix' description: 'Cache key prefix'
required: false required: false
@ -64,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.4' default: '3.9.5'
required: false required: false
# maven settings.xml # maven settings.xml
@ -105,6 +110,7 @@ runs:
distribution: '${{ inputs.java-distribution }}' distribution: '${{ inputs.java-distribution }}'
- uses: actions/cache@v3 - uses: actions/cache@v3
if: inputs.cache-enabled == 'true'
with: with:
path: | path: |
${{ inputs.cache-path }} ${{ inputs.cache-path }}