Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
Refactor Dockerfile into multi-stage virgin/full targets and introduce a single flag-based image build script. Standardize image naming, remove redundant build scripts, and update Makefile targets accordingly. CI workflows now build missing virgin images and run root and user tests consistently across all supported distributions. https://chatgpt.com/share/693c29d9-9b28-800f-a549-5661c783d968
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Test Virgin Root
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
test-virgin-root:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
distro: [arch, debian, ubuntu, fedora, centos]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Show Docker version
|
|
run: docker version
|
|
|
|
# 🔹 BUILD virgin image if missing
|
|
- name: Build virgin container (${{ matrix.distro }})
|
|
run: |
|
|
set -euo pipefail
|
|
distro="${{ matrix.distro }}" make build-missing
|
|
|
|
# 🔹 RUN test inside virgin image
|
|
- name: Virgin ${{ matrix.distro }} pkgmgr test (root)
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
docker run --rm \
|
|
-v "$PWD":/src \
|
|
-v pkgmgr_repos:/root/Repositories \
|
|
-v pkgmgr_pip_cache:/root/.cache/pip \
|
|
-w /src \
|
|
"pkgmgr-${{ matrix.distro }}-virgin" \
|
|
bash -lc '
|
|
set -euo pipefail
|
|
|
|
git config --global --add safe.directory /src
|
|
|
|
make install
|
|
make setup
|
|
|
|
. "$HOME/.venvs/pkgmgr/bin/activate"
|
|
|
|
export NIX_CONFIG="experimental-features = nix-command flakes"
|
|
|
|
pkgmgr update pkgmgr --clone-mode shallow --no-verification
|
|
pkgmgr version pkgmgr
|
|
|
|
echo ">>> Running Nix-based: nix run .#pkgmgr -- version pkgmgr"
|
|
nix run /src#pkgmgr -- version pkgmgr
|
|
'
|