Style select as tab #2845
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 & Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build . -t jasperkms/jasper-ui:$(date +%s) | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the testing image | |
run: docker build . --file Dockerfile --target test --tag test | |
- name: Run the test container | |
run: docker run --name test test | |
- name: Copy the tests from the container | |
if: always() | |
run: docker cp test:/tests tests | |
- name: Publish Unit Test Results | |
uses: dorny/test-reporter@v1 | |
if: always() | |
continue-on-error: true | |
with: | |
name: Test Results | |
path: "tests/*.xml" | |
reporter: java-junit |