From c8bed64b978253731801dd05b8ddc9d72e0fe921 Mon Sep 17 00:00:00 2001 From: Breno A Date: Wed, 26 Jun 2024 06:53:03 -0300 Subject: [PATCH] ci: Enforce unit tests on every pull request (#784) * ci: add unit testing on pull request * ci: add test job --- .github/workflows/testing.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/testing.yml diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..2a4c764 --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,25 @@ +name: Run Unit Tests + +on: + pull_request: + +jobs: + test: + + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 + + - name: Unit Test with Gradle Wrapper + run: ./gradlew test