Update gradle.yml

This commit is contained in:
Matt 2020-09-02 13:40:24 -04:00 committed by GitHub
parent 00d0cb147e
commit c942276029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,15 +10,33 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2.0.0 uses: actions/checkout@v2.3.*
- name: Setup Java JDK - name: Setup Java JDK
uses: actions/setup-java@v1.3.0 uses: actions/setup-java@v1.4.2
with: with:
java-version: 1.8 java-version: 1.8
- name: Cache Gradle
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Test enviornment
run: echo $GITHUB_WORKSPACE
- name: Download BuildTools - name: Download BuildTools
run: wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar run: wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
- name: Run BuildTools - name: Run BuildTools