forked from helidon-io/helidon-build-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4.x: Upgrade github actions to v4 (helidon-io#1037)
* Upgrade github actions to v4 * unique artifacts to fix upgrade to v4 * Use [email protected] * Use upload-artifact/merge to create aggregated artifacts --------- Co-authored-by: Romain Grecourt <[email protected]>
- Loading branch information
1 parent
ad9c489
commit fd0d06f
Showing
3 changed files
with
48 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2023 Oracle and/or its affiliates. | ||
# Copyright (c) 2023, 2024 Oracle and/or its affiliates. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -56,10 +56,10 @@ inputs: | |
description: Path of the files to include in the artifact | ||
required: false | ||
default: '' | ||
archive-test-results: | ||
description: Wether to archive test results (excluded on windows) | ||
test-artifact-name: | ||
description: Name of the test artifact to create (excluded on windows), if non empty tests are archived | ||
required: false | ||
default: 'false' | ||
default: '' | ||
test-matrix: | ||
description: | | ||
A JSON matrix with a "group" dimension, and a "groups" object to resolve Maven modules | ||
|
@@ -109,21 +109,21 @@ runs: | |
git config --global core.eol lf | ||
- name: Set up GraalVM | ||
if: ${{ inputs.native-image == 'true' }} | ||
uses: graalvm/setup-graalvm@v1.1.2.1 | ||
uses: graalvm/[email protected] | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
version: ${{ env.GRAALVM_VERSION }} | ||
components: 'native-image' | ||
check-for-updates: 'false' | ||
set-java-home: 'false' | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3.11.0 | ||
uses: actions/setup-java@v4.1.0 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRO }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- name: Cache local Maven repository (read-write) | ||
if: ${{ inputs.maven-cache == 'read-write' }} | ||
uses: actions/cache@v3.3.1 | ||
uses: actions/cache@v4.0.2 | ||
with: | ||
path: | | ||
.m2/repository/** | ||
|
@@ -134,7 +134,7 @@ runs: | |
local-maven- | ||
- name: Cache local Maven repository (read-only) | ||
if: ${{ inputs.maven-cache == 'read-only' }} | ||
uses: actions/cache/restore@v3.3.1 | ||
uses: actions/cache/restore@v4.0.2 | ||
with: | ||
path: | | ||
.m2/repository/** | ||
|
@@ -145,7 +145,7 @@ runs: | |
local-maven- | ||
- name: Build cache (read-write) | ||
if: ${{ inputs.build-cache == 'read-write' }} | ||
uses: actions/cache@v3.3.1 | ||
uses: actions/cache@v4.0.2 | ||
with: | ||
path: | | ||
./**/target/** | ||
|
@@ -157,7 +157,7 @@ runs: | |
build-cache-${{ github.run_id }}- | ||
- name: Build cache (read-only) | ||
if: ${{ inputs.build-cache == 'read-only' }} | ||
uses: actions/cache/restore@v3.3.1 | ||
uses: actions/cache/restore@v4.0.2 | ||
with: | ||
path: | | ||
./**/target/** | ||
|
@@ -191,18 +191,18 @@ runs: | |
shell: bash | ||
- name: Archive test results | ||
# https://github.com/actions/upload-artifact/issues/240 | ||
if: ${{ inputs.archive-test-results == 'true' && runner.os != 'Windows' && always() }} | ||
uses: actions/upload-artifact@v3.1.2 | ||
if: ${{ inputs.test-artifact-name != '' && runner.os != 'Windows' && always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: 'ignore' | ||
name: test-results | ||
name: ${{ inputs.test-artifact-name }} | ||
path: | | ||
**/target/surefire-reports/*.txt | ||
**/target/failsafe-reports/*.txt | ||
**/target/it/**/*.log | ||
- name: Archive artifacts | ||
if: ${{ inputs.artifact-name != '' && inputs.artifact-path != '' && always() }} | ||
uses: actions/upload-artifact@v3.1.2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: 'ignore' | ||
name: ${{ inputs.artifact-name }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters