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 / lint-shell (push) Has been cancelled
Mark stable commit / lint-python (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
- Add NIX_CONFIG with GitHub access token to all CI test workflows - Export NIX_CONFIG in Makefile for propagation to test scripts - Forward NIX_CONFIG explicitly into all docker run invocations - Prevent GitHub API rate limit errors during Nix-based tests https://chatgpt.com/share/69432655-a948-800f-8c0d-353921cdf644
56 lines
1.5 KiB
YAML
56 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]
|
|
env:
|
|
NIX_CONFIG: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Show Docker version
|
|
run: docker version
|
|
|
|
- name: Build virgin container (${{ matrix.distro }})
|
|
run: |
|
|
set -euo pipefail
|
|
PKGMGR_DISTRO="${{ matrix.distro }}" make build-missing-virgin
|
|
|
|
- name: Virgin ${{ matrix.distro }} pkgmgr test (root)
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
docker run --rm \
|
|
-v "$PWD":/opt/src/pkgmgr \
|
|
-v pkgmgr_repos:/root/Repositories \
|
|
-v pkgmgr_pip_cache:/root/.cache/pip \
|
|
-e NIX_CONFIG="${NIX_CONFIG}" \
|
|
-w /opt/src/pkgmgr \
|
|
"pkgmgr-${{ matrix.distro }}-virgin" \
|
|
bash -lc '
|
|
set -euo pipefail
|
|
|
|
git config --global --add safe.directory /opt/src/pkgmgr
|
|
|
|
make install
|
|
make setup
|
|
|
|
. "$HOME/.venvs/pkgmgr/bin/activate"
|
|
|
|
pkgmgr update pkgmgr --clone-mode shallow --no-verification
|
|
pkgmgr version pkgmgr
|
|
|
|
echo ">>> Running Nix-based: nix run .#pkgmgr -- version pkgmgr"
|
|
nix run /opt/src/pkgmgr#pkgmgr -- version pkgmgr
|
|
'
|