Files
proxmox-manager/.github/workflows/ci.yml
dependabot[bot] b306411d2e chore(deps): bump the github-actions group across 1 directory with 5 updates
Bumps the github-actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/setup-python](https://github.com/actions/setup-python) | `6.3.0` | `7.1.0` |
| [actions/setup-node](https://github.com/actions/setup-node) | `4.4.0` | `7.1.0` |
| [actions/configure-pages](https://github.com/actions/configure-pages) | `5.0.0` | `6.0.0` |
| [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) | `3.0.1` | `5.0.0` |
| [actions/deploy-pages](https://github.com/actions/deploy-pages) | `4.0.5` | `5.0.1` |



Updates `actions/setup-python` from 6.3.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/ece7cb06caefa5fff74198d8649806c4678c61a1...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0)

Updates `actions/setup-node` from 4.4.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/49933ea5288caeca8642d1e84afbd3f7d6820020...949feb2413d6458794dcd2491c4babbbce0c15c1)

Updates `actions/configure-pages` from 5.0.0 to 6.0.0
- [Release notes](https://github.com/actions/configure-pages/releases)
- [Commits](https://github.com/actions/configure-pages/compare/983d7736d9b0ae728b81ab479565c72886d7745b...45bfe0192ca1faeb007ade9deae92b16b8254a0d)

Updates `actions/upload-pages-artifact` from 3.0.1 to 5.0.0
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/56afc609e74202658d3ffba0e8f6dda462b719fa...fc324d3547104276b827a68afc52ff2a11cc49c9)

Updates `actions/deploy-pages` from 4.0.5 to 5.0.1
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e...368f82528645a54fb793d4d04e342629a3f51346)

---
updated-dependencies:
- dependency-name: actions/configure-pages
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/deploy-pages
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-python
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-pages-artifact
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-08 20:31:37 +00:00

139 lines
4.8 KiB
YAML

name: ci
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
shellcheck:
name: Shell checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Run shellcheck
run: |
set -euo pipefail
mapfile -d '' -t files < <(find . -maxdepth 4 -type f -name '*.sh' -print0)
if [ ${#files[@]} -eq 0 ]; then
echo "No shell scripts found."
exit 0
fi
for file in "${files[@]}" maintenance/pman-maintenance; do
bash -n "$file"
done
shellcheck -x "${files[@]}" maintenance/pman-maintenance
- name: Download, verify, and run shfmt
env:
SHFMT_VERSION: 3.13.1
SHFMT_SHA256: fb096c5d1ac6beabbdbaa2874d025badb03ee07929f0c9ff67563ce8c75398b1
run: |
set -euo pipefail
shfmt_path="${RUNNER_TEMP}/shfmt"
curl --fail --location --silent --show-error \
--proto '=https' --tlsv1.2 \
--retry 3 \
"https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_amd64" \
--output "${shfmt_path}"
printf '%s %s\n' "${SHFMT_SHA256}" "${shfmt_path}" | sha256sum --check --strict
chmod 0755 "${shfmt_path}"
"${shfmt_path}" -d proxmox-manager.sh install_dependencies.sh maintenance/pman-maintenance tools/build-release.sh
- name: Run tests
run: |
set -euo pipefail
bash tests/run.sh
bash tests/test_inventory.sh
bash tests/test_spice.sh
maintenance:
name: Maintenance Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.13']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python }}
- name: Native adapter, source-check and installer tests
run: python3 -B -m unittest discover -s tests/maintenance -v
- name: Build and verify release bundle
run: |
bash tools/build-release.sh dist
cd dist
sha256sum -c SHA256SUMS
website:
name: Documentation site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
cache: npm
cache-dependency-path: site/package-lock.json
- name: Install dependencies
working-directory: site
run: npm ci
- name: Build site
working-directory: site
run: npm run build
- name: Verify build output
run: |
set -euo pipefail
python3 - <<'PY'
import html
import sys
from pathlib import Path
dist = Path('site/dist')
pages = sorted(dist.rglob('*.html'))
expected = {'index.html', 'anleitung/index.html', 'health/index.html',
'wartung/index.html', 'datenschutz/index.html'}
found = {p.relative_to(dist).as_posix() for p in pages}
missing = expected - found
if missing:
sys.exit(f'missing pages in build: {sorted(missing)}')
for page in pages:
text = html.unescape(page.read_text(encoding='utf-8'))
if '[PLATZHALTER]' in text:
sys.exit(f'placeholder left in {page}')
guide = html.unescape((dist / 'anleitung' / 'index.html').read_text(encoding='utf-8'))
for needle in ('HEALTH_CPU_RUNS', 'cat >/etc/cron.d/pman-health', '--filter running'):
if needle not in guide:
sys.exit(f'guide lost command: {needle}')
for anchor in ('id="installation"', 'id="health-monitoring--alerts"',
'id="relaying-through-an-external-smtp-provider"'):
if anchor not in guide:
sys.exit(f'guide lost anchor: {anchor}')
if 'CHANGELOG.md)' in guide:
sys.exit('guide still links CHANGELOG.md relatively')
print(f'{len(pages)} pages verified')
PY
- name: Audit dependencies
working-directory: site
run: npm audit --omit=dev