Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ permissions:
contents: read
# End SECTION: permissions

# Why: one active run per workflow and branch prevents obsolete CI from consuming runners.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# === SECTION: ci job (managed) ===
# Source: template + config:github_actions.*
Expand All @@ -45,8 +50,10 @@ jobs:
submodules: false
fetch-depth: 0



- name: Install mise toolchain
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
uses: jdx/mise-action@9e7f7633ff6f6d6048a9418a68d48f288f50eb14 # v4.2.3

- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
Expand All @@ -56,13 +63,13 @@ jobs:
run: make setup

- name: gen (blocking)
run: make gen APPLY=Y
run: make gen WHAT=apply APPLY=Y

- name: fmt (blocking)
run: make fmt APPLY=Y
run: make fmt WHAT=apply APPLY=Y

- name: fix (blocking)
run: make fix APPLY=Y
run: make fix WHAT=apply APPLY=Y

- name: check (blocking)
run: make check
Expand Down
17 changes: 14 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
repos:
- repo: local
hooks:
- id: flext-canonical-workflow
name: FLEXT canonical workflow
# Why: fast fixes run before each commit; expensive gates run before push.
- id: flext-pre-commit
name: FLEXT pre-commit workflow
language: system
entry: >-
bash -eu -o pipefail -c
'make gen APPLY=Y && make fmt APPLY=Y && make fix APPLY=Y && make check && make test'
'make fmt APPLY=Y && make fix APPLY=Y'
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: flext-pre-push
name: FLEXT pre-push workflow
language: system
entry: >-
bash -eu -o pipefail -c
'make gen APPLY=Y && make check && make test'
pass_filenames: false
always_run: true
stages: [pre-push]
Loading