mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-16 08:25:14 +02:00
ci: run pre-commit checks in CI (#74)
* ci: run pre-commit in CI * test: update CI workflow guardrail
This commit is contained in:
parent
3fde4438b1
commit
fa9237956e
25 changed files with 177 additions and 128 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"id": "chinook_with_declared_metadata",
|
||||
"displayName": "Chinook (SQLite, declared metadata)",
|
||||
"url": "https://raw.githubusercontent.com/lerocha/chinook-database/master/ChinookDatabase/DataSources/Chinook_Sqlite.sqlite",
|
||||
"sha256": "7651ba378ac2fcd0dfc3c66fb101f7a7eed3ba39a612ec642b96e20702061f15",
|
||||
"sha256": "7651ba378ac2fcd0dfc3c66fb101f7a7eed3ba39a612ec642b96e20702061f15", "_allowlist": "// pragma: allowlist secret",
|
||||
"license": "MIT",
|
||||
"source": "https://github.com/lerocha/chinook-database"
|
||||
},
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
"id": "northwind_with_declared_metadata",
|
||||
"displayName": "Northwind (SQLite, declared metadata)",
|
||||
"url": "https://github.com/jpwhite3/northwind-SQLite3/raw/main/dist/northwind.db",
|
||||
"sha256": "2f4f5c68dfcd33ba27373eae48c7a4869800c68095ee0f9f0da494f83382a877",
|
||||
"sha256": "2f4f5c68dfcd33ba27373eae48c7a4869800c68095ee0f9f0da494f83382a877", "_allowlist": "// pragma: allowlist secret",
|
||||
"license": "MIT",
|
||||
"source": "https://github.com/jpwhite3/northwind-SQLite3"
|
||||
},
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
"id": "sakila_with_declared_metadata",
|
||||
"displayName": "Sakila (SQLite, declared metadata)",
|
||||
"url": "https://raw.githubusercontent.com/bradleygrant/sakila-sqlite3/master/sakila_master.db",
|
||||
"sha256": "88c91a4a1a6b61f9d3f35904c0a173c887b25e73f20c3c2fdb073818c06f4268",
|
||||
"sha256": "88c91a4a1a6b61f9d3f35904c0a173c887b25e73f20c3c2fdb073818c06f4268", "_allowlist": "// pragma: allowlist secret",
|
||||
"license": "BSD-2-Clause",
|
||||
"source": "https://github.com/bradleygrant/sakila-sqlite3"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ describe('standalone KTX CI workflow', () => {
|
|||
assertIncludesAll(workflow, [
|
||||
'permissions:',
|
||||
'contents: read',
|
||||
'pre-commit-checks:',
|
||||
'name: Pre-commit checks',
|
||||
'typescript-checks:',
|
||||
'name: TypeScript checks',
|
||||
'slow-context-tests:',
|
||||
|
|
@ -33,7 +35,7 @@ describe('standalone KTX CI workflow', () => {
|
|||
'artifact-checks:',
|
||||
'name: Artifact checks',
|
||||
'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd',
|
||||
'pnpm/action-setup@739bfe42ca9233c5e6aca07c1a25a9d34aca49b0',
|
||||
'pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093',
|
||||
'actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e',
|
||||
'node-version: "24"',
|
||||
'cache-dependency-path: "pnpm-lock.yaml"',
|
||||
|
|
@ -46,7 +48,10 @@ describe('standalone KTX CI workflow', () => {
|
|||
'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405',
|
||||
'python-version: "3.13"',
|
||||
'astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b',
|
||||
'version: "0.11.11"',
|
||||
'cache-dependency-glob: "uv.lock"',
|
||||
'uv sync --all-packages --all-groups',
|
||||
'uv run pre-commit run --all-files',
|
||||
'uv sync --all-packages',
|
||||
'uv run pytest',
|
||||
'pnpm run artifacts:check',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue