Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,17 @@ jobs:
go-version-file: 'go.mod'

- name: Build
run: go build ./cmd/... ./pkg/...
run: make build

- name: Test
run: go test ./cmd/... ./pkg/...
run: make test

- name: Integration test against Let's Encrypt Staging
if: inputs.run-staging-tests
run: make test-staging

- name: Lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
version: v2.14.0
args: ./cmd/... ./pkg/...

- name: Verify deploy consistency
run: make verify-deploy-consistency
- name: Verify
run: make verify

- name: Verify container image builds
if: inputs.run-staging-tests
Expand Down
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
.PHONY: all
all: build

GO_BUILD_PACKAGES := ./cmd/...
GO_BUILD_PACKAGES := ./cmd/... ./pkg/...
GO_TEST_PACKAGES := ./cmd/... ./pkg/...

CONTAINER_ENGINE ?= docker
IMAGE_REGISTRY ?= ghcr.io/gordon-code
IMAGE_TAG ?= latest
PLATFORM ?= linux/amd64

GOLANGCI_LINT ?= go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.1
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_VERSION ?= v2.14.0
GOLANGCI_LINT ?= go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)

.PHONY: build
build:
go build $(GO_BUILD_PACKAGES)
go test -run=^$$ ./test/...

.PHONY: test
test:
Expand All @@ -32,12 +35,17 @@ vet:
lint:
$(GOLANGCI_LINT) run ./cmd/... ./pkg/...

.PHONY: verify-gomod
verify-gomod:
go mod tidy -diff
go mod verify

.PHONY: verify-deploy-consistency
verify-deploy-consistency:
hack/verify-deploy-consistency.sh

.PHONY: verify
verify: vet lint verify-deploy-consistency
verify: verify-gomod vet lint verify-deploy-consistency

.PHONY: image-controller
image-controller:
Expand Down
15 changes: 5 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,26 @@ module github.com/gordon-code/openshift-acme
go 1.26.0

require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
github.com/ghodss/yaml v1.0.0
github.com/google/go-cmp v0.7.0
github.com/onsi/ginkgo/v2 v2.33.0
github.com/onsi/gomega v1.44.0
github.com/openshift/api v0.0.0-20260827112852-2c17c596bd4b
github.com/openshift/client-go v0.0.0-20260818144019-860af65a7cbc
github.com/prometheus/client_golang v1.24.1
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
golang.org/x/crypto v0.57.0
gopkg.in/inf.v0 v0.9.1
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.37.1
k8s.io/apimachinery v0.37.1
k8s.io/apiserver v0.37.1
k8s.io/client-go v0.37.1
k8s.io/klog/v2 v2.140.0
sigs.k8s.io/yaml v1.6.0
)

require (
github.com/Masterminds/semver/v3 v3.4.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
github.com/fxamacker/cbor/v2 v2.9.1 // indirect
github.com/go-logr/logr v1.4.3 // indirect
Expand All @@ -47,19 +42,19 @@ require (
github.com/go-openapi/swag/yamlutils v0.27.1 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/google/gnostic-models v0.7.0 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/pprof v0.0.0-20260402051712-545e8a4df936 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.70.1 // indirect
github.com/prometheus/procfs v0.21.1 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
Expand All @@ -74,10 +69,10 @@ require (
golang.org/x/tools v0.49.0 // indirect
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad // indirect
k8s.io/utils v0.0.0-20260626114624-be93311217bd // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.4.2 // indirect
sigs.k8s.io/yaml v1.6.0 // indirect
)
Loading
Loading