Add CI test framework and GitHub Actions pipeline#17
Closed
terchris wants to merge 12 commits intonorwegianredcross:mainfrom
Closed
Add CI test framework and GitHub Actions pipeline#17terchris wants to merge 12 commits intonorwegianredcross:mainfrom
terchris wants to merge 12 commits intonorwegianredcross:mainfrom
Conversation
…shell install working on ARM cpus, 3-script to select development templates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Phase 0: New test structure - Add test framework with assertions, numbering, and summary - Add static tests: syntax, metadata, categories, flags (18 tests) - Add unit tests: --help execution, --verify, library functions - Add install cycle tests: install → verify → uninstall → verify - Remove old tests from addition-templates/tests/ Phase 1: CI Pipeline - Add GitHub Actions workflow (.github/workflows/ci-tests.yml) - Build container, run static/unit tests inside it - ShellCheck linting (warnings don't fail build) - Optional install tests via manual trigger Test output format: Running: 1.1) Install scripts use valid categories... PASS Running: 1.7) Config scripts have --verify handler... ISSUES 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add non-interactive verification function that checks: - supervisord.conf exists - conf.d directory exists - Supervisor running status - Count of auto-generated service configs This fixes the test failure in static test 1.7. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Move install-tailscale.sh and start-tailscale.sh to a dedicated tailscale/ subfolder. These scripts need refactoring to follow the standard template pattern and will be addressed later. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Install cycle tests (Level 3) require a fully configured devcontainer environment with prerequisites set up. They are kept for local testing only and removed from the CI pipeline. CI now runs: - Static Tests (Level 1): syntax, metadata, categories, flags - Unit Tests (Level 2): --help, --verify, library functions - ShellCheck linting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
static/,unit/,install/)addition-templates/tests/config-supervisor.shmissing--verifyhandlerTest Structure
CI Pipeline
Test Results (local)
Test plan
🤖 Generated with Claude Code