24 Commits

Author SHA1 Message Date
47c2778e48 Merge pull request #19 from s4u/cache-2.1.7
Bump actions/cache from 2.1.6 to 2.1.7
2021-12-03 18:28:44 +01:00
18ed4916ce Bump actions/cache from 2.1.6 to 2.1.7
https://github.com/actions/cache/releases/tag/v2.1.7
2021-12-03 18:25:52 +01:00
a2f82a8171 Merge pull request #18 from s4u/java-setup-2.4.0
Bump actions/setup-java from 2.3.1 to 2.4.0
2021-12-03 18:19:15 +01:00
f0c6d72092 Bump actions/setup-java from 2.3.1 to 2.4.0
https://github.com/actions/setup-java/releases/tag/v2.4.0
2021-12-03 18:16:04 +01:00
fccb401913 Merge pull request #17 from s4u/mvn-3.8.4
Bump maven from 3.8.3 to 3.8.4 in test
2021-12-03 18:14:57 +01:00
440eda18c7 Bump maven from 3.8.3 to 3.8.4 in test 2021-12-03 18:12:07 +01:00
44b3adc17b Merge pull request #16 from s4u/checkout-2.4.0
Bump actions/checkout from 2.3.5 to 2.4.0
2021-12-03 18:10:46 +01:00
8d6de218c6 Bump actions/checkout from 2.3.5 to 2.4.0
https://github.com/actions/checkout/releases/tag/v2.4.0
2021-12-03 18:07:09 +01:00
421a3d288e Remove concurrency from test 2021-12-03 18:06:45 +01:00
00510bfd43 Bump actions/checkout from 2.3.5 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [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/v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 14:14:37 +01:00
8693beee3c Bump actions/checkout from 2.3.4 to 2.3.5 2021-10-30 17:27:17 +02:00
9589d5648d Bump actions/checkout from 2.3.4 to 2.3.5
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
- [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/v2.3.4...v2.3.5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 15:14:08 +02:00
d27f7bad34 Merge pull request #13 from s4u/s-j-2.3.1
Bump setup-java from 2.3.0 to 2.3.1
2021-10-09 13:25:42 +02:00
07db3fb4b2 Bump setup-java from 2.3.0 to 2.3.1
https://github.com/actions/setup-java/releases/tag/v2.3.1
2021-10-09 13:21:38 +02:00
3a36aae9ec Merge pull request #12 from s4u/jdk-17
Replace jdk 16 by 17 in tests
2021-10-09 13:19:15 +02:00
b8af8b0ed8 Replace jdk 16 by 17 in tests 2021-10-09 13:09:19 +02:00
336767f6a6 Merge pull request #11 from s4u/s-m-4.2
Bump setup-maven from 4.1 to 4.2
2021-10-09 12:57:07 +02:00
078175723e Bump setup-maven from 4.1 to 4.2
https://github.com/stCarolas/setup-maven/releases/tag/v4.2
2021-10-09 12:51:25 +02:00
38506fd243 Merge pull request #10 from s4u/mvn-3.8.3
Maven 3.8.3 as default
2021-10-07 08:36:45 +02:00
41d4657217 Maven 3.8.3 as default 2021-10-06 23:49:55 +02:00
e9a7bdc6d6 Merge pull request #9 from s4u/rm-debug
Remove group / debug info
2021-10-06 22:39:10 +02:00
b3d576e79a Remove group / debug info 2021-10-06 22:33:58 +02:00
ff43cac4ad Merge pull request #7 from s4u/action-name
Simplify action name
2021-08-30 19:49:36 +02:00
cac57cc0b0 Simplify action name 2021-08-30 19:44:30 +02:00
3 changed files with 33 additions and 37 deletions

View File

@ -11,10 +11,6 @@ on:
schedule: schedule:
- cron: '22 23 * * 5' - cron: '22 23 * * 5'
concurrency:
group: test-action
cancel-in-progress: true
jobs: jobs:
test: test:
name: Test name: Test
@ -22,14 +18,14 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ] os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
java: [ '8', '11', '16' ] java: [ '8', '11', '17' ]
maven: [ '3.5.4', '3.6.3', '3.8.2' ] maven: [ '3.5.4', '3.6.3', '3.8.4' ]
fail-fast: false fail-fast: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.4.0
- uses: ./ - uses: ./
with: with:
@ -40,3 +36,23 @@ jobs:
- run: mvn -V validate -Drequire.java=${{ matrix.java }} -Drequire.maven=${{ matrix.maven }} - run: mvn -V validate -Drequire.java=${{ matrix.java }} -Drequire.maven=${{ matrix.maven }}
shell: bash shell: bash
test-deault:
name: Test with defaults
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: ./
with:
java-version: 8
- run: mvn -V validate -Drequire.java=8 -Drequire.maven=3.8.3
shell: bash
test-ok:
name: Test OK
runs-on: ubuntu-latest
needs: [ test, test-deault ]
steps:
- run: echo OK

View File

@ -1,4 +1,4 @@
# Setup Maven with settings.xml # Setup Maven Action
[![Test](https://github.com/s4u/setup-maven-action/actions/workflows/test.yml/badge.svg)](https://github.com/s4u/setup-maven-action/actions/workflows/test.yml) [![Test](https://github.com/s4u/setup-maven-action/actions/workflows/test.yml/badge.svg)](https://github.com/s4u/setup-maven-action/actions/workflows/test.yml)
This is composite action which help to prepare GitHub Actions environment for Maven build by calling: This is composite action which help to prepare GitHub Actions environment for Maven build by calling:
@ -66,7 +66,7 @@ So we can use for action:
| params | destination | default | | params | destination | default |
| ------------- |-------------- |-------- | | ------------- |-------------- |-------- |
| maven-version | maven-version | 3.8.1 | | maven-version | maven-version | 3.8.3 |
## maven-settings-action ## maven-settings-action
@ -93,7 +93,7 @@ jobs:
steps: steps:
- name: Setup Maven with settings.xml - name: Setup Maven Action
uses: s4u/setup-maven-action@< version > uses: s4u/setup-maven-action@< version >
with: with:
java-version: 8 java-version: 8

View File

@ -1,5 +1,5 @@
name: 'Setup Maven with settings.xml' name: 'Setup Maven Action'
description: 'Setup environment for Maven build' description: 'Complete environment configuration for Maven builds'
branding: branding:
icon: 'settings' icon: 'settings'
@ -40,7 +40,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.8.1' default: '3.8.3'
required: false required: false
# maven settings.xml # maven settings.xml
@ -65,51 +65,31 @@ runs:
steps: steps:
- run: echo "::group::Checkout" - uses: actions/checkout@v2.4.0
shell: bash
- uses: actions/checkout@v2.3.4
with: with:
fetch-depth: '${{ inputs.checkout-fetch-depth }}' fetch-depth: '${{ inputs.checkout-fetch-depth }}'
- run: echo "::endgroup::"
shell: bash
- run: echo "::group::Setup Java" - uses: actions/setup-java@v2.4.0
shell: bash
- uses: actions/setup-java@v2.3.0
with: with:
overwrite-settings: false overwrite-settings: false
java-version: '${{ inputs.java-version }}' java-version: '${{ inputs.java-version }}'
distribution: '${{ inputs.java-distribution }}' distribution: '${{ inputs.java-distribution }}'
- run: echo "::endgroup::"
shell: bash
- run: echo "::group::Setup Cache" - uses: actions/cache@v2.1.7
shell: bash
- uses: actions/cache@v2.1.6
with: with:
path: | path: |
${{ inputs.cache-path }} ${{ inputs.cache-path }}
${{ inputs.cache-path-add }} ${{ inputs.cache-path-add }}
key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }} key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}- restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-
- run: echo "::endgroup::"
shell: bash
- run: echo "::group::Setup Maven Version" - uses: stCarolas/setup-maven@v4.2
shell: bash
- uses: stCarolas/setup-maven@v4.1
with: with:
maven-version: '${{ inputs.maven-version }}' maven-version: '${{ inputs.maven-version }}'
- run: echo "::endgroup::"
shell: bash
- run: echo "::group::Prepare Maven settings.xml"
shell: bash
- uses: s4u/maven-settings-action@v2.4.1 - uses: s4u/maven-settings-action@v2.4.1
with: with:
servers: '${{ inputs.settings-servers}}' servers: '${{ inputs.settings-servers}}'
mirrors: '${{ inputs.settings-mirrors}}' mirrors: '${{ inputs.settings-mirrors}}'
properties: '${{ inputs.settings-properties}}' properties: '${{ inputs.settings-properties}}'
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots}}' sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots}}'
- run: echo "::endgroup::"
shell: bash