Skip to content

Conversation

@maxrantil
Copy link
Owner

Summary

Refactors .github/workflows/shell-quality.yml to eliminate ~240 lines of duplicated test logic by invoking the standalone tests/installation-test.sh script instead.

Changes

  • Removed: Inline test steps (9 separate workflow steps with duplicated logic)
  • Added: Single call to ./tests/installation-test.sh with appropriate parameters
  • Maintained: All functionality - 9 test scenarios, diagnostic artifacts on failure
  • Result: installation-test job reduced from ~240 lines to ~26 lines

Benefits

Single source of truth: Test logic only exists in tests/installation-test.sh
Easier maintenance: Update tests in one place instead of two
Guaranteed consistency: CI and local tests run identical code
Reduced complexity: Simpler workflow configuration

Testing

  • ✅ Verified workflow YAML syntax passes pre-commit hooks
  • ✅ Confirmed diagnostic artifacts still upload on failure
  • ✅ CI tests will validate full functionality

Notes

Pre-existing issue: Docker test failure (Starship cache test) also fails on master branch and is unrelated to this refactoring.

Resolves

Closes #60

Replaced ~240 lines of duplicated test logic in GitHub Actions workflow
with a single call to the standalone test script.

Changes:
- Removed inline test steps from installation-test job
- Now invokes tests/installation-test.sh directly
- Maintains same functionality: 9 test scenarios, diagnostics on failure
- Reduces workflow from ~240 lines to ~26 lines for the test job

Benefits:
- Single source of truth for test logic
- Easier maintenance (update tests in one place)
- Guaranteed consistency between CI and local testing

Note: Pre-existing Docker test failure (Starship cache) is unrelated to
this refactoring and also fails on master branch.
@maxrantil maxrantil marked this pull request as ready for review November 4, 2025 08:35
@maxrantil maxrantil merged commit d806a98 into master Nov 4, 2025
9 checks passed
@maxrantil maxrantil deleted the feat/issue-60-workflow-refactor branch November 4, 2025 08:37
maxrantil added a commit that referenced this pull request Nov 4, 2025
Updated SESSION_HANDOVER.md to reflect:
- Issue #60 closed and PR #64 merged to master
- Workflow refactoring complete (~240 lines eliminated)
- Next recommended priority: Issue #61 (rollback script)
- Clean master branch ready for next work
maxrantil added a commit that referenced this pull request Nov 4, 2025
Updated SESSION_HANDOVER.md to reflect:
- Issue #60 closed and PR #64 merged to master
- Workflow refactoring complete (~240 lines eliminated)
- Next recommended priority: Issue #61 (rollback script)
- Clean master branch ready for next work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor GitHub Actions workflow to eliminate test duplication

2 participants