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 / codesniffer-shellcheck (push) Has been cancelled
Mark stable commit / codesniffer-ruff (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
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:
|
|
PKGMGR_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
|
|
PKGMGR_DISTRO="${{ matrix.distro }}" make build-missing-virgin
|
|
|
|
# 🔹 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
|
|
'
|