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-wikisearch.git
The following commit(s) were added to refs/heads/main by this push:
new 10f2435 Update GitHub Actions
10f2435 is described below
commit 10f2435048e61c1b76f8bb94d9863692f9087a80
Author: Christopher Tubbs <[email protected]>
AuthorDate: Mon Nov 25 15:34:04 2024 -0500
Update GitHub Actions
* Use v4
* Use setup-java's cache instead of actions/cache
---
.github/workflows/maven.yaml | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index 547a9aa..d403e1d 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -34,20 +34,13 @@ jobs:
verify:
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: Build with Maven