chore(deps): update actions/cache action from vv4 to v5 #76
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 PR | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| maven-package: | |
| if: "!contains(github.event.head_commit.message, 'ci skip')" | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17.0.13 | |
| distribution: liberica | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| ${{ runner.os }}-maven- | |
| ${{ runner.os }}- | |
| - name: Run maven build | |
| run: mvn package -PprettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm | |
| - name: codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./target/site/jacoco/jacoco.xml |