PVE-mods/.github/workflows/validate-mods.yml
Meliox 6585849459
Restructure repo (#251)
* refactor: restructure src/ into modules/, scripts/, and build/

- src/nag_screen/ and src/node_info/ -> src/modules/  (mods grouped explicitly)
- src/Scripts/ -> src/scripts/                        (lowercase, consistent)
- src/gen-rules.sh -> build/                          (build tool separated from source)

Update all references: debian/rules, .github/workflows/*, build/gen-rules.sh,
src/scripts/test/test-syntax.sh (SRC_DIR now points to src/modules/),
src/scripts/test/test-patches.sh, and files.list comments.

* refactor: move CI test scripts from src/scripts/test/ to build/test/

Test scripts are not installed — they are CI/dev tooling and belong
alongside build/gen-rules.sh. Update workflow references and fix the
SRC_DIR path depth in build/test/test-syntax.sh (../ -> ../..).

* d

---------

Co-authored-by: Meliox <na>
2026-08-08 23:46:46 +02:00

45 lines
1.1 KiB
YAML

name: Validate Mods
# Called by Test Release Build after a successful .deb build.
# Validates source syntax for all mods, then installs the artifact on a
# Proxmox-seeded runner and verifies that every mod's patches apply and revert cleanly.
on:
workflow_call:
permissions:
contents: read
jobs:
patch-install-test:
runs-on: ubuntu-latest
container:
image: debian:trixie
steps:
- name: Install base tools
run: |
apt-get update
apt-get install -y --no-install-recommends \
ca-certificates git sudo wget xz-utils dpkg nodejs
- uses: actions/checkout@v7
- name: Download deb artifact
uses: actions/download-artifact@v7
with:
pattern: pve-mods-test-build-*
merge-multiple: true
path: deb
- name: Fetch upstream Proxmox files
run: bash build/test/fetch-proxmox-files.sh
- name: Install built package
run: apt-get install -y ./deb/*.deb
- name: Test all mods
run: bash build/test/test-patches.sh all
- name: Validate source syntax
run: bash build/test/test-syntax.sh all