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