mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
Both the justfile and the pre-commit configuration for the `pr-check` sync were broken: * justfiles run recipes one line at a time in a fresh shell, so the venv activation was not working * the pre-commit config was relying on an installed `ruamel.yaml` pakcage, but the default one installable via `apt` on Ubuntu 24.04 is old and generates different output (with formatting differences). Now: * the venv dance is put in a separate bash script * both just and pre-commit will use that same script, so both problems will be fixed As a bonus, a root `justfile` is added exposing the `update-pr-checks` recipes plus a `build` one. Running `just` without arguments will also now call the default `sync` recipes that will call both of the above.
21 lines
552 B
YAML
21 lines
552 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: compile-ts
|
|
name: Compile typescript
|
|
files: \.[tj]s$
|
|
language: system
|
|
entry: npm run build
|
|
pass_filenames: false
|
|
- id: lint-ts
|
|
name: Lint typescript code
|
|
files: \.ts$
|
|
language: system
|
|
entry: npm run lint -- --fix
|
|
- id: pr-checks-sync
|
|
name: Synchronize PR check workflows
|
|
files: ^.github/workflows/__.*\.yml$|^pr-checks
|
|
language: system
|
|
entry: pr-checks/sync.sh
|
|
pass_filenames: false
|