From 77c23c4690697243a55341c98ea43d2ae4cb3c26 Mon Sep 17 00:00:00 2001 From: briandilley Date: Thu, 22 May 2025 07:39:51 -0700 Subject: [PATCH] unit test checks --- .github/workflows/gradle-test-validation.yml | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/gradle-test-validation.yml diff --git a/.github/workflows/gradle-test-validation.yml b/.github/workflows/gradle-test-validation.yml new file mode 100644 index 0000000..4410b3e --- /dev/null +++ b/.github/workflows/gradle-test-validation.yml @@ -0,0 +1,36 @@ + +name: Gradle Test Validation + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + validate: + name: Validate with Gradle Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Grant execute permission to Gradle wrapper + run: chmod +x ./gradlew + + - name: Run Gradle tests + run: ./gradlew test + + - name: Upload test results (optional) + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: build/test-results