[ci] Update actions/cache from v2 to v4 #48
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: Build [saga] | |
on: | |
push: | |
paths: | |
- 'saga/**' | |
- '.github/workflows/saga-workflow.yml' | |
pull_request: | |
paths: | |
- 'saga/**' | |
- '.github/workflows/saga-workflow.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('saga/**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Check changes in [saga] example | |
run: cd saga && mvn clean verify -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 |