fix: simplify kcl-ci-build and exclude generated workflows from Prettier

Remove wait-for-checks from kcl-ci-build (not needed for this repo).
Add .forgejo/workflows/ to .prettierignore since KCL controls formatting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vlad MocanuandClaude Opus 4.6 committed 2026-02-27 11:59:42 +02:00
1 parent 4954e96cc5
commit c47fc002c6
3 files changed
+5 -27

No files matched your search

+2 -10
View File
@@ -6,19 +6,13 @@ import kcl_ci.workflows.claude as claude_mod
import kcl_ci.versions import kcl_ci.versions
# ============================================================================= # =============================================================================
# Check name constants # CI workflow job name constants
# Forgejo check names format: "WorkflowName / JobName (event)"
# Keep these in sync with job names in the workflows below
# ============================================================================= # =============================================================================
_CI_WORKFLOW_NAME = "CI" _CI_WORKFLOW_NAME = "CI"
_CI_JOB_TEST = "Tests" _CI_JOB_TEST = "Tests"
_CI_JOB_PRETTIER = "Prettier" _CI_JOB_PRETTIER = "Prettier"
_CI_JOB_TYPECHECK = "Type Check" _CI_JOB_TYPECHECK = "Type Check"
_CHECK_CI_TEST = "{} / {} (push)".format(_CI_WORKFLOW_NAME, _CI_JOB_TEST)
_CHECK_CI_PRETTIER = "{} / {} (push)".format(_CI_WORKFLOW_NAME, _CI_JOB_PRETTIER)
_CHECK_CI_TYPECHECK = "{} / {} (push)".format(_CI_WORKFLOW_NAME, _CI_JOB_TYPECHECK)
# ============================================================================= # =============================================================================
# Bun version pinned across all CI jobs # Bun version pinned across all CI jobs
# Bun 1.3.x broke spyOn(fs, ...) in tests. # Bun 1.3.x broke spyOn(fs, ...) in tests.
@@ -65,9 +59,7 @@ _claude_workflow = claude_mod.claude_workflow()
# KCL CI Build workflow (auto-regenerates workflows from KCL) # KCL CI Build workflow (auto-regenerates workflows from KCL)
# Waits for CI checks before building # Waits for CI checks before building
# ============================================================================= # =============================================================================
_kcl_build_workflow = kcl_build_mod.kcl_ci_build_workflow(kcl_build_mod.KclCiBuildConfig { _kcl_build_workflow = kcl_build_mod.kcl_ci_build_workflow()
wait_for_checks = [_CHECK_CI_TEST, _CHECK_CI_PRETTIER, _CHECK_CI_TYPECHECK]
})
# ============================================================================= # =============================================================================
# CI workflow (test, prettier, typecheck) # CI workflow (test, prettier, typecheck)
-17
View File
@@ -16,26 +16,9 @@ concurrency:
group: kcl-ci-${{ github.ref }} group: kcl-ci-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
wait-for-tests:
name: Wait for Tests
runs-on: grunt
if: github.event_name == 'push'
steps:
- name: Wait for test checks to complete
uses: https://${{ secrets.READ_REPO_TOKEN }}@git.wxs.ro/actions/wait-for-checks@v2
with:
token: ${{ github.token }}
timeout: '300'
checks: |-
CI / Tests (push),
CI / Prettier (push),
CI / Type Check (push)
build: build:
name: Build KCL Workflows name: Build KCL Workflows
runs-on: grunt runs-on: grunt
needs:
- wait-for-tests
if: always() && (needs.wait-for-tests.result == 'success' || needs.wait-for-tests.result == 'skipped')
steps: steps:
- name: Build KCL workflows - name: Build KCL workflows
uses: https://${{ secrets.READ_REPO_TOKEN }}@git.wxs.ro/actions/kcl-ci@v1.34.3 uses: https://${{ secrets.READ_REPO_TOKEN }}@git.wxs.ro/actions/kcl-ci@v1.34.3
+3
View File
@@ -1,2 +1,5 @@
# Test fixtures should not be formatted to preserve exact output matching # Test fixtures should not be formatted to preserve exact output matching
test/fixtures/ test/fixtures/
# KCL-generated workflows — formatting is controlled by kcl-ci
.forgejo/workflows/