Compare commits

...

2 commits

Author SHA1 Message Date
fc308bf56d
add coverage gate to pre-commit hook
All checks were successful
Generic zig build / build (push) Successful in 1m21s
Generic zig build / deploy (push) Successful in 14s
2026-01-08 15:14:52 -08:00
d019035b95
we need better permissions for kcov...comment this out for now 2026-01-08 15:13:06 -08:00
2 changed files with 3 additions and 3 deletions

View file

@ -20,8 +20,8 @@ jobs:
run: zig build --summary all run: zig build --summary all
- name: Run tests - name: Run tests
run: zig build test -Ddownload-geoip --summary all run: zig build test -Ddownload-geoip --summary all
- name: Check code coverage >= 80% # - name: Check code coverage >= 80%
run: zig build coverage -Ddownload-geoip -Dcoverage-threshold=80 --summary all # run: zig build coverage -Ddownload-geoip -Dcoverage-threshold=80 --summary all
- name: Package - name: Package
run: zig build -Dtarget="$BUILD_TARGET" -Doptimize="$BUILD_OPTIMIZATION" run: zig build -Dtarget="$BUILD_TARGET" -Doptimize="$BUILD_OPTIMIZATION"
- name: Upload - name: Upload

View file

@ -29,7 +29,7 @@ repos:
- id: test - id: test
name: Run zig build test name: Run zig build test
entry: zig entry: zig
args: ["build", "--verbose", "test"] args: ["build", "coverage", "-Dcoverage-threshold=80"]
language: system language: system
types: [file] types: [file]
pass_filenames: false pass_filenames: false