build(deps): bump actions/cache from 4.3.0 to 5.0.0 #787
This file contains hidden or 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: "Build and Test" | |
| on: [push] | |
| jobs: | |
| build-n-test: | |
| name: "Build and test" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: "Cache Maven repository" | |
| uses: actions/[email protected] | |
| with: | |
| path: $HOME/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: "JDK set-up" | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'adopt' | |
| - name: "Build and run tests" | |
| run: | | |
| mvn clean install |