-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 857 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 857 Bytes
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
# Variables
SCHEMAS_DIR := pkg/validate/schemas
GITLAB_URL := https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json
GITHUB_URL := https://json.schemastore.org/github-workflow.json
.PHONY: help build test update-schemas
help:
@echo "Available targets:"
@echo " build Build the pisyn binary"
@echo " test Run unit tests"
@echo " update-schemas Refresh bundled CI schemas from upstream (GitLab + GitHub)"
build:
go build ./...
test:
go test ./...
update-schemas:
@echo "Fetching GitLab CI schema from $(GITLAB_URL)"
curl -fsSL $(GITLAB_URL) -o $(SCHEMAS_DIR)/gitlab-ci.json
@echo "Fetching GitHub Actions workflow schema from $(GITHUB_URL)"
curl -fsSL $(GITHUB_URL) -o $(SCHEMAS_DIR)/github-workflow.json
@echo "Schemas updated. Review with: git diff $(SCHEMAS_DIR)"