3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 01:40:06 +01:00
FastAsyncWorldEdit/.github/workflows/gradle.yml

Revisionen in .git-blame-ignore-revs werden ignoriert. Klicke hier, um das zu umgehen und die normale Blame-Ansicht zu sehen.

57 Zeilen
1.5 KiB
YAML

2019-11-06 17:45:41 +01:00
name: Java CI
on:
push:
branches:
2020-09-19 16:59:58 +02:00
- 'main'
2019-11-06 17:45:41 +01:00
pull_request:
branches:
2020-09-19 16:59:58 +02:00
- 'main'
2019-11-06 17:45:41 +01:00
jobs:
test:
2020-09-02 19:40:24 +02:00
runs-on: ubuntu-latest
2020-10-03 22:28:58 +02:00
strategy:
matrix:
java: [1.8, 1.11]
2019-11-06 17:45:41 +01:00
steps:
2020-03-20 01:12:21 +01:00
- name: Checkout
2020-09-02 19:41:37 +02:00
uses: actions/checkout@v2.3.2
2020-03-20 01:12:21 +01:00
- name: Setup Java JDK
2020-09-02 19:40:24 +02:00
uses: actions/setup-java@v1.4.2
2019-11-06 17:45:41 +01:00
with:
2020-10-03 22:28:58 +02:00
java-version: ${{ matrix.java }}
2020-09-02 19:40:24 +02:00
- name: Cache Gradle
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
2020-10-03 22:28:58 +02:00
key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*') }}
2020-09-02 19:40:24 +02:00
restore-keys: |
2020-10-03 22:28:58 +02:00
${{ runner.os }}-${{ matrix.java }}-gradle-
2020-09-02 19:40:24 +02:00
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
2020-10-03 22:28:58 +02:00
key: ${{ runner.os }}-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
2020-09-02 19:40:24 +02:00
restore-keys: |
2020-10-03 22:28:58 +02:00
${{ runner.os }}-${{ matrix.java }}-maven-
- name: Cache BuildTools decompiled code
uses: actions/cache@v2
with:
path: $GITHUB_WORKSPACE/work
key: ${{ runner.os }}-buildtools
restore-keys: |
${{ runner.os }}-buildtools
2020-09-02 19:40:24 +02:00
- name: Test enviornment
run: echo $GITHUB_WORKSPACE
2020-03-19 23:45:24 +01:00
- name: Download BuildTools
run: wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
2020-03-19 23:47:48 +01:00
- name: Run BuildTools
2020-09-07 20:49:05 +02:00
run: java -jar BuildTools.jar --rev 1.16.2
2019-11-06 17:45:41 +01:00
- name: Test with Gradle
2020-09-07 20:49:05 +02:00
run: ./gradlew clean build sourcesJar javadocJar
2020-03-19 23:45:24 +01:00