Skip to content

test

test #10

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
name: SpringBoot Build & Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
checks: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build & Test Backends with Maven-Reactor
run: mvn -B -T1C -pl order-backend,product-backend -am clean verify
- name: Publish JUnit results
if: always()
uses: dorny/test-reporter@v1
with:
name: JUnit Tests
path: '**/surefire-reports/*.xml'
reporter: java-junit
fail-on-error: false
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload JUnit reports
if: always()
uses: actions/upload-artifact@v4
with:
name: surefire-reports
path: '**/surefire-reports/**'