From 408056bc9a7c4a1f2403a196a7dbd3f7e1dd5567 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Wed, 17 Jun 2020 14:19:33 +0100 Subject: [PATCH] Create pullrequest.yml --- .github/workflows/pullrequest.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pullrequest.yml diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml new file mode 100644 index 0000000..ee651a5 --- /dev/null +++ b/.github/workflows/pullrequest.yml @@ -0,0 +1,29 @@ +name: Build Pull Request + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package + - name: Archive artifacts + uses: actions/upload-artifact@v1 + if: success() + with: + name: Build + path: bungee/target/geyser-connect-*.jar