mirror bufbuild/buf-action@v1.1.1
Buf action CI / build (push) Canceled after 0s
Buf action CI / test-setup (push) Canceled after 0s
Buf action CI / test-setup-latest (push) Canceled after 0s
Buf action CI / test-setup-macos (push) Canceled after 0s
Buf action CI / test-setup-windows (push) Canceled after 0s
Buf action CI / test-setup-self-hosted (push) Canceled after 0s
Buf action CI / test-empty-build (push) Canceled after 0s
Buf action CI / test-lint (push) Canceled after 0s
Buf action CI / test-format (push) Canceled after 0s
Buf action CI / test-breaking (push) Canceled after 0s
Buf action CI / test-comment (push) Canceled after 0s
Buf action CI / test-push (push) Canceled after 0s
Buf action CI / test-push-token-only (push) Canceled after 0s
Buf action CI / test-push-unnamed (push) Canceled after 0s
Buf action CI / test-archive (push) Canceled after 0s
Buf action CI / test-archive-root (push) Canceled after 0s
Buf action CI / test-archive-unnamed (push) Canceled after 0s
Buf action CI / build (push) Canceled after 0s
Buf action CI / test-setup (push) Canceled after 0s
Buf action CI / test-setup-latest (push) Canceled after 0s
Buf action CI / test-setup-macos (push) Canceled after 0s
Buf action CI / test-setup-windows (push) Canceled after 0s
Buf action CI / test-setup-self-hosted (push) Canceled after 0s
Buf action CI / test-empty-build (push) Canceled after 0s
Buf action CI / test-lint (push) Canceled after 0s
Buf action CI / test-format (push) Canceled after 0s
Buf action CI / test-breaking (push) Canceled after 0s
Buf action CI / test-comment (push) Canceled after 0s
Buf action CI / test-push (push) Canceled after 0s
Buf action CI / test-push-token-only (push) Canceled after 0s
Buf action CI / test-push-unnamed (push) Canceled after 0s
Buf action CI / test-archive (push) Canceled after 0s
Buf action CI / test-archive-root (push) Canceled after 0s
Buf action CI / test-archive-unnamed (push) Canceled after 0s
This commit is contained in:
commit
38d0d7e18f
50 files changed
+85157
No files matched your search
@@ -0,0 +1,61 @@
|
||||
# See https://tech.davis-hansson.com/p/make/
|
||||
SHELL := bash
|
||||
.DELETE_ON_ERROR:
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
.DEFAULT_GOAL := all
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
MAKEFLAGS += --no-print-directory
|
||||
BUF_VERSION ?= 1.50.1
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
SED_I := sed -E -i ''
|
||||
else
|
||||
SED_I := sed -E -i
|
||||
endif
|
||||
|
||||
.PHONY: help
|
||||
help: ## Describe useful make targets
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-30s %s\n", $$1, $$2}'
|
||||
|
||||
PHONY: all
|
||||
all: ## Format, Lint and build (default)
|
||||
$(MAKE) build
|
||||
|
||||
.PHONY: format
|
||||
format: node_modules
|
||||
npm run format
|
||||
|
||||
.PHONY: lint
|
||||
lint: node_modules
|
||||
npm run lint
|
||||
|
||||
.PHONY: build
|
||||
build: node_modules format lint
|
||||
npm run build
|
||||
|
||||
.PHONY: updateversion
|
||||
updateversion:
|
||||
ifndef VERSION
|
||||
$(error "VERSION must be set")
|
||||
endif
|
||||
ifndef VERSION_SHORT
|
||||
$(error "VERSION_SHORT must be set")
|
||||
endif
|
||||
$(SED_I) "s/version: [0-9]+\.[0-9]+\.[0-9]+/version: $(BUF_VERSION)/g" action.yml README.md examples/*.yaml examples/*/*.yaml
|
||||
$(SED_I) "s/buf-action@v[0-9]+(\.[0-9]+)?(\.[0-9]+)?/buf-action@v$(VERSION_SHORT)/g" README.md examples/*.yaml examples/*/*.yaml
|
||||
$(SED_I) "s/\"version\": \"[0-9]+\.[0-9]+\.[0-9]+\"/\"version\": \"$(VERSION)\"/g" package.json
|
||||
npm prune
|
||||
|
||||
.PHONY: generate
|
||||
generate: node_modules ## Regenerate licenses
|
||||
npm run generate
|
||||
|
||||
.PHONY: checkgenerate
|
||||
checkgenerate:
|
||||
@# Used in CI to verify that `make generate` doesn't produce a diff.
|
||||
test -z "$$(git status --porcelain | tee /dev/stderr)"
|
||||
|
||||
node_modules: package-lock.json
|
||||
npm ci
|
||||
Reference in new issue
Block a user