[tooling] make commands for building and formatting CI pipeline

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7051
GitOrigin-RevId: dca45b31608680bf57a2dd190171b2567e1fcb02
This commit is contained in:
Daniel Harvey 2022-11-25 15:44:04 +00:00 committed by hasura-bot
parent afa1e2fc02
commit 60ab8e2ae3
2 changed files with 16 additions and 4 deletions

View File

@ -8,8 +8,9 @@ help:
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
include ./scripts/make/build.mk
include ./scripts/make/lint.mk
include ./scripts/make/test-infrastructure.mk
include ./scripts/make/tests.mk
include ./scripts/make/legacy-tests.mk
include ./scripts/make/ci.mk
include ./scripts/make/ghcid.mk
include ./scripts/make/legacy-tests.mk
include ./scripts/make/lint.mk
include ./scripts/make/tests.mk
include ./scripts/make/test-infrastructure.mk

11
scripts/make/ci.mk Normal file
View File

@ -0,0 +1,11 @@
WORKSPACE ?= $(shell dirname $(shell pwd))/
.PHONY: pipeline-build
## pipeline-build: check that the CI pipeline still builds
pipeline-build:
cd .buildkite/pipeline-gen && go build ./...
.PHONY: pipeline-format
## pipeline-format: run go fmt on all the Go files in .buildkite
pipeline-format:
cd .buildkite && gofmt -l -w -s .