-
Notifications
You must be signed in to change notification settings - Fork 57
45 lines (39 loc) · 1.24 KB
/
addons-pr-validator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 3rd Party Addons PR Validator
on:
workflow_dispatch:
push:
# TODO: Re-enable this, to prevent running when not necessary
# paths:
# - 'assets/addon_browser/'
# - '.github/workflows/addons-pr-validator.yml'
pull_request:
# TODO: Re-enable this, to prevent running when not necessary
# paths:
# - 'assets/addon_browser/'
permissions:
contents: read
jobs:
addons-pr-validator:
name: 3rd Party Addons PR Validator
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Clone Validator Tool
run: git clone https://github.com/BlueMap-Minecraft/BlueMap3rdValidator.git
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: temurin
java-version: 11
check-latest: false
cache: gradle
cache-dependency-path: |
BlueMap3rdValidator/*.gradle*
BlueMap3rdValidator/**/gradle-wrapper.properties
- name: Build the Validator
run: |
cd BlueMap3rdValidator
./gradlew build --no-daemon
- name: Run the Validator
run: java -jar BlueMap3rdValidator/build/libs/BlueMap3rdValidator-1.0-all.jar "."