chore(actions): validate resource pack and datapack demo

This commit is contained in:
omo50
2026-03-13 17:56:54 -06:00
parent 723ce813f2
commit 0d91a1e239
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
name: Validate Datapacks
on:
push:
branches: [ "main" ]
paths:
- 'datapacks/**'
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
validate:
runs-on: technocality
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: legacy-nether
uses: https://github.com/ChenCMD/datapack-linter@v2
with:
lintDirectory: datapacks/external/legacy-nether
- name: legacy-nether-extended
uses: https://github.com/ChenCMD/datapack-linter@v2
with:
lintDirectory: datapacks/external/legacy-nether-extended
- name: legacy-mechanics
uses: https://github.com/ChenCMD/datapack-linter@v2
with:
lintDirectory: datapacks/external/legacy-mechanics

View File

@@ -0,0 +1,32 @@
name: Validate Resource Packs
on:
push:
branches: [ "main" ]
paths:
- 'resourcepacks/**'
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
validate:
runs-on: technocality
container:
image: ghcr.io/mrkinau/resourcepackvalidator:master
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Validate all
run: |
failed=0
for dir in ./resourcepacks/external/*/; do
pack=$(basename "$dir")
echo "Validating $pack"
resourcepackvalidator -rp "$dir" -report "./report-$pack.xml" || failed=1
done
for dir in ./resourcepacks/internal/*/; do
pack=$(basename "$dir")
echo "Validating $pack"
resourcepackvalidator -rp "$dir" -report "./report-$pack.xml" || failed=1
done
exit $failed