50 Commits

Author SHA1 Message Date
63e4cd9ad1 Merge pull request #37 from s4u/checkput-persist-cred
Add persist-credentials for checkout action with default false
2022-05-10 09:45:10 +02:00
f0414a8351 Add persist-credentials for checkout action with default false 2022-05-10 09:29:43 +02:00
81f0483288 Merge pull request #36 from s4u/chckout-path
Add path for checkout action
2022-05-10 09:26:50 +02:00
af6b8e170c Add path for checkout action 2022-05-10 08:07:43 +02:00
22a06a2fe3 Merge pull request #35 from s4u/same-maven-version
Don't reinstall the same version of Maven
2022-05-09 13:43:24 +02:00
d36f1fc23e Don't reinstall the same version of Maven 2022-05-09 13:23:35 +02:00
b53dd2825a Merge pull request #34 from s4u/re-run-maven-download
Try again download maven
2022-04-16 13:51:11 +02:00
56cc41b90d Try again download maven 2022-04-16 13:45:03 +02:00
e3c826f8cc Bump s4u/maven-settings-action from 2.5.0 to 2.6.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](https://github.com/s4u/maven-settings-action/compare/v2.5.0...v2.6.0)

---
updated-dependencies:
- dependency-name: s4u/maven-settings-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 15:13:13 +02:00
4c63d7d932 Bump actions/setup-java from 2.4.0 to 3
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.4.0...v3)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 23:01:45 +01:00
4585690afd Maven 3.8.5 as default 2022-03-25 22:23:19 +01:00
22fe1553d7 Bump actions/cache from 2.1.7 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 21:11:51 +01:00
18ef4b759e Bump actions/checkout from 2.4.0 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.
- [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.4.0...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 12:34:12 +01:00
58b2cc938d Fix verify job 2022-03-16 09:51:10 +01:00
004043f81b Bump stCarolas/setup-maven from 4.2 to 4.3
Bumps [stCarolas/setup-maven](https://github.com/stCarolas/setup-maven) from 4.2 to 4.3.
- [Release notes](https://github.com/stCarolas/setup-maven/releases)
- [Commits](https://github.com/stCarolas/setup-maven/compare/v4.2...v4.3)

---
updated-dependencies:
- dependency-name: stCarolas/setup-maven
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 14:34:52 +01:00
d9764096ef Bump s4u/maven-settings-action from 2.4.1 to 2.5.0
Bumps [s4u/maven-settings-action](https://github.com/s4u/maven-settings-action) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/s4u/maven-settings-action/releases)
- [Commits](https://github.com/s4u/maven-settings-action/compare/v2.4.1...v2.5.0)

---
updated-dependencies:
- dependency-name: s4u/maven-settings-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 14:15:12 +01:00
d60941527d Bump release-drafter/release-drafter from 5.18.1 to 5.19.0
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.18.1 to 5.19.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.18.1...v5.19.0)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 14:55:05 +01:00
8668fb9de8 File sync from s4u/.github - Shared auto approve 2022-02-23 19:18:36 +00:00
ec82f26b88 File sync from s4u/.github - Shared auto approve 2022-02-23 19:06:44 +00:00
1907361ea9 File sync from s4u/.github - disable auto approve 2022-02-23 17:30:07 +00:00
d4245fa41a File sync from s4u/.github - Bump dependabot/fetch-metadata from 1.1.1 to 1.2.1 in /common-files 2022-02-23 16:22:34 +00:00
35a231e628 Merge pull request #24 from s4u/mvn-3.8.4
Maven 3.8.4 as default
2022-02-21 14:48:13 +01:00
bee771f042 Maven 3.8.4 as default 2022-02-21 14:41:18 +01:00
5344d1092e Bump dependabot/fetch-metadata from 1.1.1 to 1.2.0
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v1.1.1...v1.2.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 14:13:50 +01:00
cd150da647 Bump release-drafter/release-drafter from 5.18.0 to 5.18.1
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.18.0 to 5.18.1.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.18.0...v5.18.1)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 14:15:41 +01:00
f2a772b79b File sync from s4u/.github - Bump release-drafter/release-drafter in /common-files 2022-02-07 10:17:06 +00:00
b82597c31c Bump release-drafter/release-drafter from 5.17.5 to 5.17.6
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.17.5 to 5.17.6.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.17.5...v5.17.6)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 14:16:44 +01:00
2a61fa7362 Bump release-drafter/release-drafter from 5.15.0 to 5.17.5
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.15.0 to 5.17.5.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.15.0...v5.17.5)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 14:15:38 +01:00
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
5 changed files with 76 additions and 75 deletions

View File

@ -5,30 +5,6 @@ on:
jobs:
auto-approve:
runs-on: ubuntu-latest
steps:
- name: Dependabot metadata
if: github.actor == 'dependabot[bot]'
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.TECH_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: >
github.actor == 'dependabot[bot]'
&& steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
- name: Approve a PR
if: >
github.actor == 'dependabot[bot]'
|| github.actor == 'slawekjaranowski'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
uses: s4u/.github/.github/workflows/auto-approve.yml@master
secrets:
TECH_TOKEN: ${{ secrets.TECH_TOKEN }}

View File

@ -17,6 +17,6 @@ jobs:
&& !startsWith(github.event.head_commit.message , '[maven-release-plugin]')
steps:
- uses: release-drafter/release-drafter@v5.15.0
- uses: release-drafter/release-drafter@v5.19.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

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

View File

@ -18,24 +18,27 @@ This is composite action which help to prepare GitHub Actions environment for Ma
# Project versioning
This project uses [Semantic Versioning](https://semver.org/).
We recommended to use the latest and specific release version.
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).
# Params mapping for sub actions
**Notice** when used this action you should not used mentioned below actions again.
## checkout
| params | destination |
| -------------------------- |------------------ |
| checkout-fetch-depth | fetch-depth |
| params | destination | default |
|------------------------------|---------------------|---------|
| checkout-fetch-depth | fetch-depth | |
| checkout-path | path | |
| checkout-persist-credentials | persist-credentials | false |
## setup-java
| params | destination | default |
| ----------------- |------------- |-------- |
|-------------------|--------------|---------|
| java-version | java-version | |
| java-distribution | distribution | temurin |
@ -55,23 +58,23 @@ A cache action is configured as:
So we can use for action:
| params | description |
| ----------------- |--------------------------------------------------------- |
| cache-path | default cache path for Maven with value ~/.m2/repository |
| cache-path-add | additional value for cache path |
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
| params | description |
|----------------|----------------------------------------------------------|
| cache-path | default cache path for Maven with value ~/.m2/repository |
| cache-path-add | additional value for cache path |
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
## setup-maven
| params | destination | default |
| ------------- |-------------- |-------- |
| maven-version | maven-version | 3.8.1 |
|---------------|---------------|---------|
| maven-version | maven-version | 3.8.5 |
## maven-settings-action
| params | destination |
| -------------------------- |------------------ |
|----------------------------|-------------------|
| settings-servers | servers |
| settings-mirrors | mirrors |
| settings-properties | properties |
@ -87,7 +90,7 @@ jobs:
strategy:
matrix:
maven: [ '3.5.4', '3.6.3', '3.8.2' ]
maven: [ '3.5.4', '3.6.3', '3.8.5' ]
name: Maven ${{ matrix.maven }} sample

View File

@ -12,6 +12,16 @@ inputs:
description: 'Number of commits to fetch'
required: false
checkout-path:
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
required: false
checkout-persist-credentials:
description: 'Whether to configure the token or SSH key with the local git config'
default: 'false'
required: false
# java jdk params
java-version:
@ -40,7 +50,7 @@ inputs:
# maven version
maven-version:
description: 'The Maven version to set up'
default: '3.8.1'
default: '3.8.5'
required: false
# maven settings.xml
@ -65,51 +75,39 @@ runs:
steps:
- run: echo "::group::Checkout"
shell: bash
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
with:
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
- run: echo "::endgroup::"
shell: bash
path: '${{ inputs.checkout-path }}'
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
- run: echo "::group::Setup Java"
shell: bash
- uses: actions/setup-java@v2.3.0
- uses: actions/setup-java@v3
with:
overwrite-settings: false
java-version: '${{ inputs.java-version }}'
distribution: '${{ inputs.java-distribution }}'
- run: echo "::endgroup::"
shell: bash
- run: echo "::group::Setup Cache"
shell: bash
- uses: actions/cache@v2.1.6
- uses: actions/cache@v3
with:
path: |
${{ inputs.cache-path }}
${{ inputs.cache-path-add }}
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 }}-
- run: echo "::endgroup::"
shell: bash
- run: echo "::group::Setup Maven Version"
- name: Installed Maven version
run: echo "::set-output name=version::$(mvn -q -v)"
shell: bash
- uses: stCarolas/setup-maven@v4.1
id: current-maven
- uses: stCarolas/setup-maven@v4.3
if: inputs.maven-version != steps.current-maven.outputs.version
with:
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.6.0
with:
servers: '${{ inputs.settings-servers}}'
mirrors: '${{ inputs.settings-mirrors}}'
properties: '${{ inputs.settings-properties}}'
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots}}'
- run: echo "::endgroup::"
shell: bash