mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-14 23:21:19 +01:00
38 lines
1000 B
YAML
38 lines
1000 B
YAML
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 |