From 33f4cd9b51267dc9504d2ceb61e83a679e747570 Mon Sep 17 00:00:00 2001 From: echokrist Date: Sat, 4 Jan 2025 14:42:02 +0100 Subject: [PATCH] Create pull-request.yml Created Github action for pull requests. Recommendations from MikAoJk. --- .github/workflows/pull-request.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..f43a9f3 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,18 @@ +name: build pull request + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + cache: 'gradle' + - name: build + run: ./gradlew clean build + - name: test + run: ./gradlew test