Skip to content

refactor(cachetest): build fixtures via ldap.NewObject instead of unsafe #83

refactor(cachetest): build fixtures via ldap.NewObject instead of unsafe

refactor(cachetest): build fixtures via ldap.NewObject instead of unsafe #83

Workflow file for this run

name: Mutation Testing
on:
schedule:
- cron: '0 2 * * 0'
pull_request:
paths:
- '**.go'
- '.gremlins.yaml'
- '.github/workflows/mutation.yml'
workflow_dispatch:
permissions: {}
concurrency:
group: mutation-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
mutation:
uses: netresearch/.github/.github/workflows/go-mutation-testing.yml@main
with:
diff-only: ${{ github.event_name == 'pull_request' }}
# The *_templ.go sources are generated and not committed, so gremlins
# cannot compile internal/web/templates — nor internal/web and
# cmd/ldap-manager, which depend on it — without generating them first.
# Same command and CLI pinning as ci.yml: the templ CLI is tied to the
# runtime version in go.mod so the generator never emits symbols the
# pinned runtime lacks.
pre-build-cmd: "go install github.com/a-h/templ/cmd/templ@$(go list -m -f '{{.Version}}' github.com/a-h/templ) && templ generate"
permissions:
contents: read
pull-requests: write