ci: Enforce unit tests on every pull request (#784)

* ci: add unit testing on pull request

* ci: add test job
This commit is contained in:
Breno A 2024-06-26 06:53:03 -03:00 committed by GitHub
parent 0584290e50
commit c8bed64b97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 25 additions and 0 deletions

25
.github/workflows/testing.yml vendored Normal file
View File

@ -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