mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-09 00:24:15 +00:00
chore(actions): validate resource pack and datapack demo
This commit is contained in:
32
.forgejo/workflows/wf-validate-datapacks.yml
Normal file
32
.forgejo/workflows/wf-validate-datapacks.yml
Normal 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
|
||||
32
.forgejo/workflows/wf-validate-resource-packs.yml
Normal file
32
.forgejo/workflows/wf-validate-resource-packs.yml
Normal 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
|
||||
Reference in New Issue
Block a user