mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-11 21:26:44 +00:00
With env.development and env/ci.env both gone, env/default.env was the
last inhabitant of the directory. Hoisting it to the repo root removes
the empty-shell indirection: the SPOT is now [default.env](default.env),
sitting next to .env (its generated companion) and other repo-root
configuration artefacts like compose.yml, Dockerfile, and Makefile.
Path updates land in:
- generator: cli/meta/env/__main__.py (REPO_ROOT / "default.env")
- workflow: .github/workflows/test-install-make.yml (awk reads from
default.env, error message updated in lockstep)
- lint tests: test_used_keys_declared.py and test_infinito_prefix.py
switched from globbing env/*.env to targeting default.env directly;
test_default_env_keys_handled.py points at the new path
- drift test: test_inventory_vars_file_spot.py whitelist + STATIC_ENV
- smoke test: tests/integration/meta/env/test_dotenv_generator.py
STATIC_ENV + every docstring/error message
Doc-string and prose references in utils/env/*, scripts/*,
cli/administration/deploy/development/{common,coredns}.py,
Makefile, Dockerfile, and every doc page that mentioned env/default.env
are rewritten in the same pass so future readers see one path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: "📥 Test: Install Make"
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
actions: write
|
|
contents: read
|
|
packages: read
|
|
|
|
jobs:
|
|
test-install-make:
|
|
name: 🛠️ Makefile
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
env:
|
|
NIX_CONFIG: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
distro: [arch, debian, ubuntu, fedora, centos]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Resolve INFINITO_SRC_DIR from default.env (SPOT)
|
|
run: |
|
|
src_dir="$(awk -F= '/^INFINITO_SRC_DIR=/{print $2; exit}' default.env)"
|
|
test -n "${src_dir}" || { echo "INFINITO_SRC_DIR not found in default.env" >&2; exit 1; }
|
|
echo "INFINITO_SRC_DIR=${src_dir}" >> "$GITHUB_ENV"
|
|
|
|
- name: Install & test in pkgmgr virgin container
|
|
run: |
|
|
docker run --rm \
|
|
-e NIX_CONFIG="${NIX_CONFIG}" \
|
|
-e INFINITO_SRC_DIR="${INFINITO_SRC_DIR}" \
|
|
-v "$(pwd):${INFINITO_SRC_DIR}" \
|
|
-w "${INFINITO_SRC_DIR}" \
|
|
"ghcr.io/kevinveenbirkenbach/pkgmgr-${{ matrix.distro }}-virgin:stable" \
|
|
bash -lc '
|
|
set -euo pipefail
|
|
make install
|
|
make setup
|
|
source /opt/venvs/infinito/bin/activate
|
|
infinito --help
|
|
'
|