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