Bump actions/cache from 3 to 4 #52
Workflow file for this run
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
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 |