Repository navigation
Description
Description
Add a ci-container.yml workflow to the smoke-test repo that runs the CI pipeline inside the devcontainer image using the GitHub Actions container: directive. This validates the image works as a CI environment alongside the existing bare-runner CI.
Problem Statement
The devcontainer image ships all CI tools (Python, uv, pre-commit, ruff, pytest), but nothing validates that a full CI workflow runs successfully inside it in a real GitHub Actions environment. test-image checks tool presence; test-integration checks the devcontainer lifecycle. Neither tests the end-to-end CI use case with the container: directive.
Proposed Solution
- Create
ci-container.ymlin the smoke-test repo - Use
container: ghcr.io/vig-os/devcontainer:<tag>directive on CI jobs - Mirror the template CI steps (lint, test) but running inside the container
- Use
:latestinitially (RC tag support comes with sub-issue 4) - Document any quirks or differences vs bare-runner CI (e.g.,
actions/checkoutbehavior, root user, no Docker-in-Docker)
Alternatives Considered
See parent issue #169 for full alternatives analysis.
Additional Context
This is sub-issue 2 of 4 for #169 (Phase 1). Depends on #170 (smoke-test repo bootstrap).
Dependency graph:
- Depends on [FEATURE] Bootstrap smoke-test repo with bare-runner CI #170 (smoke-test repo must exist)
- Sub-issue 4 (cross-repo dispatch) depends on this issue
Impact
- Backward compatible. Adds a new workflow to the smoke-test repo only.
- No changes to shipped templates.
Changelog Category
Added
Acceptance Criteria
-
ci-container.ymlexists in the smoke-test repo - CI jobs run inside the devcontainer image via
container:directive - Lint and test jobs pass inside the container
- Both bare-runner (
ci.yml) and container (ci-container.yml) CI run on PRs - Quirks and differences vs bare-runner CI are documented
- TDD compliance (see .cursor/rules/tdd.mdc)
Activity
chore: add sync-manifest pre-commit hook
test: add RemovePrecommitHooks comment preservation test
fix(setup): preserve section comments when removing pre-commit hooks
build: switch to RemovePrecommitHooks and add CI/link helpers
ci: add container-based CI workflow and quirks documentation
docs: update CHANGELOG
ci: validate workspace container CI via smoke test (#216)
chore: release 0.3.0 (#270)