fix(ci): stop force-pushing empty diff on version-bump branch to prevent PR churn
This commit is contained in:
parent
cee8d04e36
commit
b6ef904565
21
.github/workflows/weekly-patch-test.yml
vendored
21
.github/workflows/weekly-patch-test.yml
vendored
@ -4,6 +4,10 @@ name: Test Patches - Weekly
|
|||||||
# Mods are auto-discovered from the [modules] section of src/pve-mod.conf and
|
# Mods are auto-discovered from the [modules] section of src/pve-mod.conf and
|
||||||
# tested in parallel - adding a mod needs no change here. If a mod fails, an
|
# tested in parallel - adding a mod needs no change here. If a mod fails, an
|
||||||
# issue is opened (or updated) per failed mod explaining why.
|
# issue is opened (or updated) per failed mod explaining why.
|
||||||
|
#
|
||||||
|
# Runs in the same debian:trixie container as validate-mods.yml so the test
|
||||||
|
# environment matches the release/validation path (Perl and other Proxmox
|
||||||
|
# tooling deps present, no drift between the two pipelines).
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@ -36,11 +40,20 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
needs: discover
|
needs: discover
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:trixie
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
mod: ${{ fromJSON(needs.discover.outputs.mods) }}
|
mod: ${{ fromJSON(needs.discover.outputs.mods) }}
|
||||||
steps:
|
steps:
|
||||||
|
# ── Base tools (mirrors validate-mods.yml) ──────────────────────────────
|
||||||
|
- name: Install base tools
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
ca-certificates git sudo wget xz-utils dpkg nodejs perl
|
||||||
|
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -48,8 +61,8 @@ jobs:
|
|||||||
# ── Build (mirrors test-release.yml) ───────────────────────────────────
|
# ── Build (mirrors test-release.yml) ───────────────────────────────────
|
||||||
- name: Install build deps
|
- name: Install build deps
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
apt-get update -qq
|
||||||
sudo apt-get install -y devscripts debhelper build-essential
|
apt-get install -y devscripts debhelper build-essential
|
||||||
|
|
||||||
- name: Compute build version
|
- name: Compute build version
|
||||||
id: version
|
id: version
|
||||||
@ -83,12 +96,12 @@ jobs:
|
|||||||
run: bash build/test/fetch-proxmox-files.sh
|
run: bash build/test/fetch-proxmox-files.sh
|
||||||
|
|
||||||
- name: Install built package
|
- name: Install built package
|
||||||
run: sudo apt-get install -y ../pve-mod_*.deb
|
run: apt-get install -y ../pve-mod_*.deb
|
||||||
|
|
||||||
- name: Test mod
|
- name: Test mod
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
sudo bash build/test/test-patches.sh "${{ matrix.mod }}" 2>&1 | tee test-output.log
|
bash build/test/test-patches.sh "${{ matrix.mod }}" 2>&1 | tee test-output.log
|
||||||
|
|
||||||
- name: Validate source syntax
|
- name: Validate source syntax
|
||||||
run: bash build/test/test-syntax.sh "${{ matrix.mod }}"
|
run: bash build/test/test-syntax.sh "${{ matrix.mod }}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user