From 63e471192f5f4ed6440cc20895c1c9069f6e74c4 Mon Sep 17 00:00:00 2001 From: Patrick Kubiak Date: Tue, 5 Nov 2024 20:39:31 -0500 Subject: [PATCH] separate job for webflux --- .github/workflows/build.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 402adeb..a24ce7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,40 @@ name: Build on: [push] jobs: - build: + mvc-login: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Build with Gradle + run: ./gradlew build + - name: Unit Test with Gradle + run: ./gradlew test + - name: Generate JaCoCo badge + id: jacoco + uses: cicirello/jacoco-badge-generator@v2 + with: + jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv + badges-directory: badges + generate-branches-badge: true + generate-summary: true + - name: Log coverage percentages to workflow output + run: | + echo "coverage = ${{ steps.jacoco.outputs.coverage }}" + echo "branches = ${{ steps.jacoco.outputs.branches }}" + - name: Upload JaCoCo coverage report as a workflow artifact + uses: actions/upload-artifact@v4 + with: + name: jacoco-report + path: build/reports/jacoco/test/ + webflux-login: runs-on: ubuntu-latest steps: - name: Checkout sources