Skip to content

Commit 45115ca

Browse files
feat(workflow)!: unified CI/CD workflow configuration
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
1 parent 76532bf commit 45115ca

17 files changed

+2511
-1
lines changed

.github/workflows/workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ on:
6363
required: false
6464
default: '.'
6565

66+
concurrency:
67+
group: ${{ github.workflow }}-${{ github.ref }}
68+
cancel-in-progress: ${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
69+
6670
permissions:
6771
contents: write # to checkout the repo and create releases on the repo
6872
pull-requests: write # to write comments to PRs
@@ -347,7 +351,7 @@ jobs:
347351
uses: actions/deploy-pages@v4
348352

349353
Publish-Module:
350-
if: ${{ needs.Get-Settings.result == 'success' && needs.Get-TestResults.result == 'success' && needs.Get-CodeCoverage.result == 'success' && needs.Build-Site.result == 'success' && !cancelled() && github.event_name == 'pull_request' }}
354+
if: ${{ needs.Get-Settings.result == 'success' && needs.Get-TestResults.result == 'success' && needs.Get-CodeCoverage.result == 'success' && needs.Build-Site.result == 'success' && !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.merged == true }}
351355
needs:
352356
- Get-Settings
353357
- Get-TestResults

0 commit comments

Comments
 (0)