Skip to content

Bump actions/cache from 3 to 4 #52

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #52

Workflow file for this run

name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install git secrets
run: |
wget --no-verbose -O git-secrets-1.3.0.tar.gz https://github.com/awslabs/git-secrets/archive/1.3.0.tar.gz
tar -zxf git-secrets-1.3.0.tar.gz
cd git-secrets-1.3.0
sudo make install
- uses: actions/checkout@v4
# Step that does that actual cache save and restore
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17.0.4+8'
distribution: 'adopt'
- name: Build with mvn
run: ./mvnw -B -ntp clean install