-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (40 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
53 lines (40 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# dotvirt build/test entry points. The same targets back .github/workflows/ci.yaml.
#
# Image: quay.io/epheo/dotvirt, tagged with the immutable short-commit SHA — never a
# moving :latest (references pin the @sha256 digest). Push needs `podman login quay.io`.
REGISTRY ?= quay.io
IMAGE ?= $(REGISTRY)/epheo/dotvirt
TAG ?= $(shell git rev-parse --short HEAD)
.PHONY: build test web check e2e image push run release preview types
build:
go build -o dotvirt ./cmd/dotvirt
test:
go vet ./...
go test ./...
web:
cd web && npm ci && npm run build
check:
cd web && npm run check
# Playwright e2e needs the dev stack up against a live cluster (see web/e2e).
e2e:
cd web && npx playwright test
image:
podman build -f Containerfile -t $(IMAGE):$(TAG) .
push: image
podman push $(IMAGE):$(TAG)
run: build
./dotvirt
# Cut a digest-pinned OLM release end-to-end (app + operator + bundle + catalog,
# every reference an immutable @sha256 digest). See hack/release.sh.
# VERSION=0.0.6 PREV=0.0.5 make release
release:
VERSION=$(VERSION) PREV=$(PREV) ./hack/release.sh
# Cut a candidate-v0 preview (release-candidate) for QA on a test cluster —
# never enters the stable-v0 channel. Throwaway. See hack/preview.sh.
# VERSION=0.0.6-rc.1 make preview
preview:
VERSION=$(VERSION) ./hack/preview.sh
# Regenerate the TS reference of internal/model (web/src/lib/model.gen.ts).
# CI diffs it, so commit the result whenever model.go changes.
types:
. hack/versions.env && GOTOOLCHAIN=auto go run "github.com/gzuidhof/tygo@$$TYGO_VERSION" generate