Skip to content

run test image

run test image #46

Workflow file for this run

name: Java (build)
on:
push:
paths:
- 'visual-java/**'
- .github/workflows/java-build.yml
pull_request:
paths:
- 'visual-java/**'
- .github/workflows/java-build.yml
defaults:
run:
working-directory: visual-java
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Build with Maven
run: mvn -B package --file pom.xml
build-test-docker-image:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}"
tags: saucelabs/java-sdk
file: Dockerfile
load: true
test:
runs-on: ubuntu-latest
needs: build-test-docker-image
steps:
- run: docker run saucelabs/java-sdk