Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Oct 2, 2025

This pull request cleans up and consolidates the process into focussing on a single workflow, the workflow.yml file. It also updates some more logic and addresses some security issues for the checkout action.

Details

  • Removed the workflow CI.yml which has previously been used for nightly runs, checking that the logic works.

  • Cleaned up some of the job flow depending on the different scenarios.

    Job Open/Updated PR Merged PR Abandoned PR Manual Run
    Get-Settings ✅ Always ✅ Always ✅ Always ✅ Always
    Lint-Repository ✅ Yes ❌ No ❌ No ❌ No
    Build-Module ✅ Yes ✅ Yes ❌ No ✅ Yes
    Build-Docs ✅ Yes ✅ Yes ❌ No ✅ Yes
    Build-Site ✅ Yes ✅ Yes ❌ No ✅ Yes
    Test-SourceCode ✅ Yes ✅ Yes ❌ No ✅ Yes
    Lint-SourceCode ✅ Yes ✅ Yes ❌ No ✅ Yes
    Test-Module ✅ Yes ✅ Yes ❌ No ✅ Yes
    BeforeAll-ModuleLocal ✅ Yes ✅ Yes ❌ No ✅ Yes
    Test-ModuleLocal ✅ Yes ✅ Yes ❌ No ✅ Yes
    AfterAll-ModuleLocal ✅ Yes ✅ Yes ❌ No ✅ Yes
    Get-TestResults ✅ Yes ✅ Yes ❌ No ✅ Yes
    Get-CodeCoverage ✅ Yes ✅ Yes ❌ No ✅ Yes
    Publish-Site ❌ No ✅ Yes (only) ❌ No ❌ No
    Publish-Module ✅ Yes* ✅ Yes* ✅ Yes ✅ Yes*
    • Only run linter on CI runs.
    • Fast forward to "Publish-Module", which also handles removal of prereleases (GitHub only).
    • Only run "Publish-Site" on a merged PR.

- Phase 0: Research complete (conditional execution, concurrency, authentication)
- Phase 1: Design complete (data model, workflow contract, quickstart guide)
- Phase 2: Task planning approach documented
- Updated agent context with feature information
- All constitutional requirements validated
Consolidates separate CI.yml into single workflow.yml with improved efficiency,
conditional publishing, and better concurrency management.

BREAKING CHANGE: The .github/workflows/CI.yml file has been deleted and its
functionality merged into workflow.yml. Consuming repositories must migrate
to the new unified workflow structure.

- Renamed CI.yml to CI.yml.backup (reference only)
- Implemented concurrency groups with auto-cancellation
- Added conditional job execution based on PR state
- Created comprehensive test suite (52 integration tests, 63 contract tests)
- Added migration guide and release notes
- Updated documentation with breaking change notice

Closes #201
…ts for the unified CI/CD workflow feature. This cleanup reflects the completion of the feature implementation and the transition to a single workflow configuration file, consolidating all functionality and removing the need for separate CI.yml and workflow.yml files.
…nd clarifying GitHub integration instructions
@MariusStorhaug MariusStorhaug self-assigned this Oct 2, 2025
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner October 2, 2025 23:03
Copilot AI review requested due to automatic review settings October 2, 2025 23:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the legacy CI.yml workflow and consolidates functionality into the main workflow.yml file, addressing the dual-maintenance burden described in the unified workflow configuration specification. The changes eliminate the separate CI workflow while preserving all testing capabilities and adding repository linting functionality for pull requests.

Key changes:

  • Removed CI.yml workflow entirely and all dependent test workflows
  • Added Lint-Repository job to workflow.yml for pull requests
  • Enhanced existing workflows with security best practices (persist-credentials: false)

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
specs/001-unified-workflow-config/spec.md Added comprehensive specification for unified workflow configuration
.github/workflows/CI.yml Removed entire CI workflow file
.github/workflows/workflow.yml Added Lint-Repository job and removed redundant Install-PSModuleHelpers step
.github/workflows/Workflow-Test-WithManifest-CI.yml Removed CI test workflow for manifest testing
.github/workflows/Workflow-Test-Default-CI.yml Removed CI test workflow for default testing
.github/workflows/Linter.yml Added persist-credentials: false for security
.github/workflows/Lint-SourceCode.yml Added persist-credentials and fetch-depth configuration
.github/prompts/implement.prompt.md Updated task tracking and PR description management instructions
.github/copilot-instructions.md Added references to technology-specific instruction files

Copilot AI review requested due to automatic review settings October 3, 2025 00:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings October 3, 2025 00:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings October 3, 2025 00:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings October 3, 2025 00:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings October 3, 2025 01:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings October 3, 2025 10:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.

@MariusStorhaug MariusStorhaug merged commit ee6798e into main Oct 3, 2025
64 of 68 checks passed
@MariusStorhaug MariusStorhaug deleted the 001-unified-workflow branch October 3, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🌟 [Major]: Unified Workflow Configuration

2 participants