From 330a759c95ec51fe20ad5373202bc048ed957d04 Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Tue, 26 Sep 2023 17:31:18 +0100 Subject: [PATCH] add compile and unit test jobs for examples project since they are now separate Signed-off-by: Jeromy Cannon --- .github/workflows/zxc-compile-code.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/zxc-compile-code.yaml b/.github/workflows/zxc-compile-code.yaml index 788389b28..582df307d 100644 --- a/.github/workflows/zxc-compile-code.yaml +++ b/.github/workflows/zxc-compile-code.yaml @@ -162,6 +162,14 @@ jobs: gradle-version: ${{ inputs.gradle-version }} arguments: assemble --scan + - name: Examples Compile + id: gradle-build + uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2.7.1 + with: + gradle-version: ${{ inputs.gradle-version }} + arguments: assemble --scan + build-root-directory: fullstack-examples + - name: Spotless Check uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2.7.1 if: ${{ inputs.enable-spotless-check && steps.gradle-build.conclusion == 'success' && !cancelled() }} @@ -177,6 +185,15 @@ jobs: gradle-version: ${{ inputs.gradle-version }} arguments: check --scan + - name: Examples Unit Tests + id: gradle-test + uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2.7.1 + if: ${{ inputs.enable-unit-tests && steps.gradle-build.conclusion == 'success' && !cancelled() && !failure() }} + with: + gradle-version: ${{ inputs.gradle-version }} + arguments: check --scan + build-root-directory: fullstack-examples + - name: Publish Unit Test Report uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0 if: ${{ inputs.enable-unit-tests && steps.gradle-build.conclusion == 'success' && !cancelled() && !failure() }}