Move misspell to github actions (#1244)
* Move misspell to github actions Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> * Delete circleci config Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
parent
f2bc1ad6bd
commit
03eafc2124
|
|
@ -1,21 +0,0 @@
|
||||||
|
|
||||||
version: 2
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
misspell:
|
|
||||||
docker:
|
|
||||||
- image: circleci/golang:1.14
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: Misspell Install
|
|
||||||
command: make install-misspell
|
|
||||||
- run:
|
|
||||||
name: Misspell check
|
|
||||||
command: make misspell
|
|
||||||
|
|
||||||
workflows:
|
|
||||||
version: 2
|
|
||||||
check-errors:
|
|
||||||
jobs:
|
|
||||||
- misspell
|
|
||||||
|
|
@ -23,4 +23,4 @@ bin
|
||||||
.swp
|
.swp
|
||||||
|
|
||||||
# Misspell binary
|
# Misspell binary
|
||||||
.tools
|
internal/tools/bin
|
||||||
|
|
|
||||||
11
Makefile
11
Makefile
|
|
@ -2,23 +2,24 @@
|
||||||
ALL_DOCS := $(shell find . -name '*.md' -not -path './.github/*' -type f | grep -v ^./node_modules | sort)
|
ALL_DOCS := $(shell find . -name '*.md' -not -path './.github/*' -type f | grep -v ^./node_modules | sort)
|
||||||
PWD := $(shell pwd)
|
PWD := $(shell pwd)
|
||||||
|
|
||||||
TOOLS_DIR := ./.tools
|
TOOLS_DIR := ./internal/tools
|
||||||
MISSPELL_BINARY=$(TOOLS_DIR)/misspell
|
MISSPELL_BINARY=bin/misspell
|
||||||
|
MISSPELL = $(TOOLS_DIR)/$(MISSPELL_BINARY)
|
||||||
MARKDOWN_LINK_CHECK=markdown-link-check
|
MARKDOWN_LINK_CHECK=markdown-link-check
|
||||||
MARKDOWN_LINT=markdownlint
|
MARKDOWN_LINT=markdownlint
|
||||||
|
|
||||||
|
|
||||||
.PHONY: install-misspell
|
.PHONY: install-misspell
|
||||||
install-misspell:
|
install-misspell:
|
||||||
go build -o $(MISSPELL_BINARY) github.com/client9/misspell/cmd/misspell
|
cd $(TOOLS_DIR) && go build -o $(MISSPELL_BINARY) github.com/client9/misspell/cmd/misspell
|
||||||
|
|
||||||
.PHONY: misspell
|
.PHONY: misspell
|
||||||
misspell:
|
misspell:
|
||||||
$(MISSPELL_BINARY) -error $(ALL_DOCS)
|
$(MISSPELL) -error $(ALL_DOCS)
|
||||||
|
|
||||||
.PHONY: misspell-correction
|
.PHONY: misspell-correction
|
||||||
misspell-correction:
|
misspell-correction:
|
||||||
$(MISSPELL_BINARY) -w $(ALL_DOCS)
|
$(MISSPELL) -w $(ALL_DOCS)
|
||||||
|
|
||||||
.PHONY: install-markdown-link-check
|
.PHONY: install-markdown-link-check
|
||||||
install-markdown-link-check:
|
install-markdown-link-check:
|
||||||
|
|
|
||||||
5
go.mod
5
go.mod
|
|
@ -1,5 +0,0 @@
|
||||||
module github.com/open-telemetry/opentelemetry-specification
|
|
||||||
|
|
||||||
go 1.12
|
|
||||||
|
|
||||||
require github.com/client9/misspell v0.3.4
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
module github.com/open-telemetry/opentelemetry-specification/internal/tools
|
||||||
|
|
||||||
|
go 1.12
|
||||||
|
|
||||||
|
require github.com/client9/misspell v0.3.4
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
// +build tools
|
// +build tools
|
||||||
|
|
||||||
package internal
|
package tools
|
||||||
|
|
||||||
// This file follows the recommendation at
|
// This file follows the recommendation at
|
||||||
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
|
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
|
||||||
Loading…
Reference in New Issue