Add testcontainers-lifecycle-examples project. #9
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: 'testcontainers lifecycle examples' | |
on: [push] | |
env: | |
JAVA_VERSION: '17' | |
jobs: | |
testcontainers-lifecycle-examples: | |
name: testcontainers lifecycle examples | |
if: github.event.inputs.trigger == '' | |
|| !startsWith(github.event.inputs.trigger, 'm') | |
|| !startsWith(github.event.inputs.trigger, 'M') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
# 'temurin' 'zulu' 'adopt' 'adopt-hotspot' 'adopt-openj9' 'liberica' 'microsoft' | |
distribution: 'temurin' | |
java-version: ${{ env.JAVA_VERSION }} | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven- | |
- run: cd $GITHUB_WORKSPACE && ./mvnw -f testcontainers-lifecycle-examples |