diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000..ec3a34f92 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,8 @@ +name: Pull Request checks + +on: + pull_request: + +jobs: + test: + uses: ./.github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..77e129122 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Unit tests + +on: + workflow_call: + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Test with Gradle + run: ./gradlew test