Skip to content

Commit

Permalink
Use GH Actions to automatically validate PRs for the 3rd party addons…
Browse files Browse the repository at this point in the history
… list (#52)

* Create addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons.conf

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Discard changes to assets/addon_browser/addons.conf

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml

* Update addons-pr-validator.yml
  • Loading branch information
TechnicJelle authored Dec 7, 2023
1 parent 98ed602 commit c0da521
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/addons-pr-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/TechnicJelle/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 "."

0 comments on commit c0da521

Please sign in to comment.