eb3a18ff1c
Each Woodpecker workflow file maps to one ci/woodpecker/pr/<file> status context, so break the single build.yaml into three PR workflows to expose three separate PR checks: - .woodpecker/pre-commit.yaml runs the pre-commit hooks via make pre-commit. - .woodpecker/test.yaml runs make test (go test ./...). - .woodpecker/build.yaml keeps only the container dry-run build-check. Add .pre-commit-config.yaml (gofmt/go vet/go unit tests + whitespace/yaml hooks) and a make pre-commit target. docker.yaml (tag release) is unchanged.
19 lines
336 B
YAML
19 lines
336 B
YAML
when:
|
|
- event: [pull_request, push]
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.25
|
|
commands:
|
|
- make test
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 1
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 2
|