From b7c57859da0ec91d75e63a9fa79b369f3c32af4b Mon Sep 17 00:00:00 2001 From: MidasSword <72667836+MidasSword@users.noreply.github.com> Date: Sat, 10 Oct 2020 12:48:18 -0700 Subject: [PATCH] add github actions --- .github/workflows/compile.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 00000000..e6a5f26a --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,38 @@ +name: Test EcoEnchants + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + name: Build Maven project + steps: + - uses: actions/checkout@v1 + - uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + # - name: Build Spigot + # # Takes 3 minutes + # # We only build 1.15 because it is the only Spigot version that is not + # # available on their Maven repo + # run: | + # cd .. + # wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar + # java -jar BuildTools.jar --rev 1.15 + - name: Set up JDK 8 + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Build EcoEnchants + run: | + mvn initialize --batch-mode + mvn package install --batch-mode \ No newline at end of file