From a6b04895fa5f72c9251ffa28ea6a8f5437fceca5 Mon Sep 17 00:00:00 2001 From: Ivan Alvarado Date: Sun, 16 Feb 2025 00:19:42 -0800 Subject: [PATCH] Add github action that builds and tests the project --- .github/workflows/pipeline.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..108f963 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,27 @@ +name: build + +on: + pull_request: + branches: + - '**' # Runs on all branches + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'zulu' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build + if: github.event_name == 'pull_request' + run: ./gradlew build