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:
1 parent
4954e96cc5
commit
c47fc002c6
3 files changed
+5
-27
No files matched your search
+2
-10
@@ -6,19 +6,13 @@ import kcl_ci.workflows.claude as claude_mod
|
||||
import kcl_ci.versions
|
||||
|
||||
# =============================================================================
|
||||
# Check name constants
|
||||
# Forgejo check names format: "WorkflowName / JobName (event)"
|
||||
# Keep these in sync with job names in the workflows below
|
||||
# CI workflow job name constants
|
||||
# =============================================================================
|
||||
_CI_WORKFLOW_NAME = "CI"
|
||||
_CI_JOB_TEST = "Tests"
|
||||
_CI_JOB_PRETTIER = "Prettier"
|
||||
_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 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)
|
||||
# Waits for CI checks before building
|
||||
# =============================================================================
|
||||
_kcl_build_workflow = kcl_build_mod.kcl_ci_build_workflow(kcl_build_mod.KclCiBuildConfig {
|
||||
wait_for_checks = [_CHECK_CI_TEST, _CHECK_CI_PRETTIER, _CHECK_CI_TYPECHECK]
|
||||
})
|
||||
_kcl_build_workflow = kcl_build_mod.kcl_ci_build_workflow()
|
||||
|
||||
# =============================================================================
|
||||
# CI workflow (test, prettier, typecheck)
|
||||
|
||||
@@ -16,26 +16,9 @@ concurrency:
|
||||
group: kcl-ci-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
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:
|
||||
name: Build KCL Workflows
|
||||
runs-on: grunt
|
||||
needs:
|
||||
- wait-for-tests
|
||||
if: always() && (needs.wait-for-tests.result == 'success' || needs.wait-for-tests.result == 'skipped')
|
||||
steps:
|
||||
- name: Build KCL workflows
|
||||
uses: https://${{ secrets.READ_REPO_TOKEN }}@git.wxs.ro/actions/kcl-ci@v1.34.3
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
# Test fixtures should not be formatted to preserve exact output matching
|
||||
test/fixtures/
|
||||
|
||||
# KCL-generated workflows — formatting is controlled by kcl-ci
|
||||
.forgejo/workflows/
|
||||
Reference in new issue
Block a user