1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00
Commit Graph

75 Commits

Author SHA1 Message Date
Jo a1b6d2821e Refactor bloat-check and hotpath workflow (#990)
* Refactor `bloat-check` and `hotpath` workflow

* Use faster profiling  profile

* Fix template injection issue

* Tweak
2025-10-29 17:00:38 +08:00
Jo e366cc2679 Fix hotpath profile comparison results path 2025-10-28 21:16:54 +08:00
Louis Maddox 65a2fe22a6 Profile latency and allocations with hotpath (#956)
* perf(hotpath): profile prek run on its own repo

* Combine pr comments

* Fix path

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-28 17:41:47 +08:00
Jo b6c6ba8461 Fail windows CI when an error occured (#971)
* Fail windows CI when an error occured

* Fix tests
2025-10-26 19:04:02 +08:00
Les Freire ed3f357f85 Support language: lua hooks (#954)
* Add Lua language support

Refactor Lua integration: streamline async functions and improve rockspec file handling

Add Lua and LuaRocks installation steps to CI workflow

Add MSVC development command to CI workflow

Update CI workflow to specify Windows-only dependencies for MSVC and Lua installations

Update CI workflow to use official Lua and LuaRocks GitHub actions

Update CI workflow to specify Windows-only dependencies for Lua and LuaRocks installations

Update CI workflow to use PowerShell for Cargo test execution and improve command formatting

Add platform-specific command snapshots for Lua tests

Enhance the Lua test environment by adding separate command snapshots for Windows and non-Windows platforms. This ensures accurate output handling based on the operating system, improving test reliability and clarity.

Update CI workflow to use specific versions of Lua and LuaRocks actions

Refactor Lua dependency installation and update test cases

Refactor Lua command execution to streamline environment path handling

Fix dependencies installing

Fix remote repo hook

* Add lua remote_hook test

* Tweaks

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-24 19:36:38 +08:00
Jo b86327004f Hardening github actions (#947)
* Hardening github actions

* Add config

* Fix comment
2025-10-21 14:17:22 +08:00
Jo 06195bdbb7 Workaround PR from forks can't comment (#942)
* Workaround PR from forks can't comment

* Minor
2025-10-20 16:22:54 +08:00
Jo 5c2a887764 Comment binary size change on PR (#939)
* Comment binary size change on PR

* Fix permission
2025-10-20 12:49:12 +08:00
Jo 33ad008b7f Minor fix for cargo-bloat summary formatting (#933) 2025-10-19 18:56:51 +08:00
Jo 706960612e Improve cargo-bloat summary formatting (#932) 2025-10-19 18:00:48 +08:00
Louis Maddox 2d6cf9c78d Monitor binary size change in PRs via cargo-bloat workflow (#927)
* perf: monitor binary size change in PRs via cargo-bloat workflow

* perf: use mold linker and Swatinem/rust-cache

* revert: cannot use commit status in PR check

* fix: result was blank

* refactor: move the bloat check into main CI workflow

* refactor: Pythonise the bloat check

* Tweak

* Fix variable substitution

* Fix size extraction

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-19 17:45:28 +08:00
renovate[bot] 9af102ae28 Update j178/prek-action action to v1.0.11 (#841) 2025-10-06 09:53:56 +08:00
Jo 0dd84cd620 Improve language version download tests (#832) 2025-10-01 22:31:57 +08:00
renovate[bot] 1b86879736 Update j178/prek-action action to v1.0.10 (#830) 2025-10-01 20:05:32 +08:00
Jo 59960410fa Add support for .prekignore to ignore directories from project discovery (#826) 2025-10-01 18:15:10 +08:00
Jo 5d32b2fe0e Use prek-action in CI lint job (#822) 2025-09-30 17:41:12 +08:00
Jo 8392fcb08a Add a codecov configuration (#816) 2025-09-29 12:02:01 +08:00
renovate[bot] 876f2b912d Update taiki-e/install-action action to v2.62.12 (#815)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 10:46:13 +08:00
renovate[bot] 63cc07c53d Update taiki-e/install-action action to v2.62.1 (#778)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-22 11:03:52 +08:00
renovate[bot] b61ebaba68 Update Swatinem/rust-cache action to v2.8.1 (#777) 2025-09-22 10:33:57 +08:00
Jo 0ba14e2f1d Add support for specifying PREK_UV_SOURCE (#766)
* Add support for specifying `PREK_UV_SOURCE`

* Fix

* Improve

* debug

* Fix
2025-09-20 18:24:35 +08:00
Jo 45741797bd Add windows code cov (#764) 2025-09-20 00:13:37 +08:00
renovate[bot] 39e57d5bcf Update taiki-e/install-action action to v2.61.3 (#744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 11:02:35 +08:00
renovate[bot] f57d8ba59c Update astral-sh/setup-uv action to v6.7.0 (#740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:46:43 +08:00
Jo 8858c5b27f Enable go mod cache for faster go related tests (#725)
* Enable go mod cache for faster go related tests

* Add node cache
2025-09-14 12:22:08 +08:00
Jo 8c17139379 Revert "Remove setup-dev-drive from Windows CI (#674)" (#695)
This reverts commit f3111a4d29.
2025-09-10 00:34:43 +08:00
Jo f3111a4d29 Remove setup-dev-drive from Windows CI (#674) 2025-09-08 16:42:06 +08:00
Jo 9cd1d3d969 Ignore pty from code coverage (#672) 2025-09-08 15:59:07 +08:00
Jo c5d29e701a Run setup python test in the same job with cargo test (#668)
* Run `setup python test` in the same job with `cargo test`

* Fix

* Fix

* Improve
2025-09-08 13:20:20 +08:00
renovate[bot] 3e86bb0ca3 Update codecov/codecov-action action to v5.5.1 (#666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:32:14 +08:00
Jo 7f29846a89 Add cargo-llvm-cov for code coverage (#660)
* Add `cargo-llvm-cov` for code coverage

* Fix

* Fix
2025-09-08 11:28:07 +08:00
renovate[bot] 1cd10cd7a6 Update actions/setup-go action to v6 (#662)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:16:28 +08:00
renovate[bot] 6266dbc352 Update actions/setup-node action to v5 (#663)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:16:06 +08:00
renovate[bot] e615c8bddc Update taiki-e/install-action action to v2.59.1 (#659) 2025-09-08 09:35:13 +08:00
renovate[bot] 4c63d49cd8 Update astral-sh/setup-uv action to v6.6.1 (#651) 2025-09-08 09:34:32 +08:00
renovate[bot] 32968af699 Update taiki-e/install-action action to v2.58.29 (#574)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-01 11:16:39 +08:00
Jo 0edb18e949 Fix CI workflow (#559) 2025-08-26 23:45:22 +08:00
Jo e4f642c912 Use mise for tools and tasks (#558)
* .

* Migrate more
2025-08-26 23:36:47 +08:00
renovate[bot] 9b2d89ce40 chore(deps): update astral-sh/setup-uv action to v6.6.0 (#537)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-24 18:59:53 +08:00
renovate[bot] d40b1c9fb7 chore(deps): update taiki-e/install-action action to v2.58.21 (#534)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-24 18:58:50 +08:00
Jo 3794c9f71e chore(deps): update taiki-e/install-action action to v2.58.17 (#512)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-20 17:32:19 +08:00
renovate[bot] f44b11094b Pin dependencies (#497)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 17:31:31 +08:00
renovate[bot] dc5616f971 Update actions/setup-node action to v4.4.0 (#499)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 16:21:39 +08:00
renovate[bot] ea82a42298 Update actions/setup-go action to v5.5.0 (#498)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 16:21:23 +08:00
renovate[bot] a99fcee335 Update astral-sh/setup-uv action to v6.5.0 (#501)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 16:21:08 +08:00
renovate[bot] b138f358d5 Update Swatinem/rust-cache action to v2.8.0 (#504)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 16:20:51 +08:00
renovate[bot] a5f2dfe08a Update actions/checkout action to v5 (#494)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 14:03:30 +08:00
Jo 56a9517a33 Download uv from github releases directly (#464)
* Download uv from github releases directly

* Improve test

* Clippy

* Refactor

* Fix

* Fix

* Fix

* Fix

* Remove temp

* Fix
2025-08-15 14:46:20 +08:00
Jo 5240376dca Add a job to test Python and uv setup (#267)
* Add a job to test Python and uv setup

* Rework

* Fix

* Fix
2025-08-14 22:54:36 +08:00
Jo eccc6394a9 Pin uv version in CI (#395)
* debug uv install

* debug

* debug

* Pin CI uv version
2025-08-08 02:12:32 +08:00