Skip to content

fix: raise coverage to 82.5% and re-enable extended golangci-lint set… #20

fix: raise coverage to 82.5% and re-enable extended golangci-lint set…

fix: raise coverage to 82.5% and re-enable extended golangci-lint set… #20

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ['**']
pull_request:
branches: [main]
merge_group:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
permissions:
contents: read
jobs:
go-check:
uses: netresearch/.github/.github/workflows/go-check.yml@main
with:
enable-smoke-fast-feedback: true
enable-fuzz: true
enable-license-check: true
enable-codecov: true
# Exclude the auto-generated internal/web/templates package from the
# coverage calculation: the *_templ.go files are produced by the templ
# CLI and contain many framework-internal defer/error branches that
# cannot be reached from unit tests. Authored-code coverage is the
# metric that matters for the fleet-wide 80% floor.
test-flags: "-race -covermode=atomic -coverprofile=coverage.out -coverpkg=github.com/netresearch/ldap-manager/cmd/...,github.com/netresearch/ldap-manager/internal/ldap_cache/...,github.com/netresearch/ldap-manager/internal/options/...,github.com/netresearch/ldap-manager/internal/retry/...,github.com/netresearch/ldap-manager/internal/version/...,github.com/netresearch/ldap-manager/internal/web"
setup-bun: true
pre-build-cmd: "go install github.com/a-h/templ/cmd/templ@latest && bun install --frozen-lockfile && bun run build:assets"
permissions:
contents: read
security-events: write
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}