From 9a793fd55aa312d7856ecf4a98f677e64cad3df4 Mon Sep 17 00:00:00 2001 From: evansmj Date: Wed, 19 Mar 2025 17:13:56 -0400 Subject: [PATCH] Add pull request pipeline that runs tests --- .github/workflows/pr.yml | 8 ++++++++ .github/workflows/test.yml | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/pr.yml create mode 100644 .github/workflows/test.yml 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