Bump org.testcontainers:junit-jupiter in /demo/java/sketchtest #311
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: Docker Image CI | |
on: | |
workflow_dispatch: | |
schedule: | |
# each first day of month | |
- cron: "0 0 1 * *" | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set DOCKER_IMAGE_TAG env var | |
run: echo "DOCKER_IMAGE_TAG=$(date +'%s-snapshot')" >> $GITHUB_ENV | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag pfichtner/virtualavr:$DOCKER_IMAGE_TAG | |
env: | |
TAG: ${{ steps.date.outputs.timestamp }}-snapshot | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: 'adopt' | |
cache: maven | |
- name: Run java based integration tests via maven | |
run: mvn -B -DTESTCONTAINERS_HUB_IMAGE_NAME_PREFIX=localhost -Dvirtualavr.docker.tag=$DOCKER_IMAGE_TAG '-Dtest=com.github.pfichtner.virtualavr.virtualavrtests.*IT' verify --file pom.xml | |
working-directory: demo/java/sketchtest | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: (success() || failure()) && github.event_name != 'pull_request' # run this step even if previous step failed | |
with: | |
name: JUnit Tests | |
path: demo/java/sketchtest/target/surefire-reports/*.xml | |
reporter: java-junit | |