000 refactor delete extra code #3531
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: Java CI Build, Unit and Integration Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Build, Unit and Integration Tests | |
run: ./gradlew build test integrationTest jacocoTestReport sonarqube | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: always() | |
with: | |
check_name: Gradle Unit and Integration Test Results | |
files: build/test-results/**/*.xml | |
- name: Upload Unit Test Results | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: Unit Test Results | |
path: build/reports/tests/test/ | |
- name: Upload Integration Test Results | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: Integration Test Results | |
path: build/reports/tests/integrationTest/ |