Skip to content

Commit

Permalink
java test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-kerem committed Apr 19, 2024
1 parent e220b02 commit 7a2c9d6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/java-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,26 @@ jobs:
cache: 'maven'
- name: Build with Maven
run: mvn -B package --file pom.xml

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push to local registry
uses: docker/build-push-action@v5
with:
context: '{{defaultContext}}:visual-java'
tags: saucelabs/visual-java
file: Dockerfile
load: true
- name: Run the integration tests
run: |
npm ci
npm run test
working-directory: tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
CONTAINER_IMAGE_NAME: saucelabs/visual-java

0 comments on commit 7a2c9d6

Please sign in to comment.