This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-maven-plugin.git
The following commit(s) were added to refs/heads/main by this push:
new 79d7d2e Update GitHub Actions
79d7d2e is described below
commit 79d7d2e505fa36cc81a5dbb4e846f536f640db07
Author: Christopher Tubbs <[email protected]>
AuthorDate: Mon Nov 25 15:31:44 2024 -0500
Update GitHub Actions
* Use v4
* Use setup-java's cache instead of actions/cache
---
.github/workflows/maven.yaml | 36 +++++++++++-------------------------
.github/workflows/scripts.yaml | 4 ++--
2 files changed, 13 insertions(+), 27 deletions(-)
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index d2f291d..6afd97b 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -37,20 +37,13 @@ jobs:
fastbuild:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - name: Set up JDK 11
- uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
with:
distribution: adopt
- java-version: 11
- - name: Cache local maven repository
- uses: actions/cache@v3
- with:
- path: |
- ~/.m2/repository/
- !~/.m2/repository/org/apache/accumulo
- key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ java-version: 17
+ cache: 'maven'
- name: Show the first log message
run: git log -n1
- name: Check for unapproved characters
@@ -73,20 +66,13 @@ jobs:
fail-fast: false
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.profile.javaver }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: adopt
java-version: ${{ matrix.profile.javaver }}
- - name: Cache local maven repository
- uses: actions/cache@v3
- with:
- path: |
- ~/.m2/repository/
- !~/.m2/repository/org/apache/accumulo
- key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ cache: 'maven'
- name: Override DNS to fix IP address for hostname
run: |
ip -br addr
@@ -109,21 +95,21 @@ jobs:
MAVEN_OPTS: -Djansi.force=true
- name: Upload unit test results
if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: surefire-reports-${{ matrix.profile.name }}
path: ./**/target/surefire-reports/
if-no-files-found: ignore
- name: Upload integration test results
if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: failsafe-reports-${{ matrix.profile.name }}
path: ./**/target/failsafe-reports/
if-no-files-found: ignore
- name: Upload mini test logs
if: ${{ failure() }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: mini-tests-logs-${{ matrix.profile.name }}
path: ./**/target/**/mini-tests/**/logs/
diff --git a/.github/workflows/scripts.yaml b/.github/workflows/scripts.yaml
index 8cfcdd6..d5854c1 100644
--- a/.github/workflows/scripts.yaml
+++ b/.github/workflows/scripts.yaml
@@ -38,7 +38,7 @@ jobs:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Show the first log message
run: git log -n1
- name: Install shfmt
@@ -51,7 +51,7 @@ jobs:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Show the first log message
run: git log -n1
- name: Install shfmt