mirror of https://github.com/Ashinch/ReadYou.git
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:
parent
0584290e50
commit
c8bed64b97
|
@ -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
|
Loading…
Reference in New Issue