From eb07368fadf27402d567063f17217ac95e52964e Mon Sep 17 00:00:00 2001 From: jmp Date: Tue, 27 Apr 2021 03:55:30 -0700 Subject: [PATCH] Run GitHub Actions for pull requests This does not archive any artifacts, simply shows whether the build passes or fails. --- .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 000000000..c25a16f6f --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,18 @@ +name: Build Purpur +on: [ pull_request ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '15' + - name: Configure Git + run: git config --global user.email "no-reply@github.com" && git config --global user.name "Github Actions" + - name: Apply patches + run: ./gradlew applyPatches + - name: Build + run: ./gradlew build