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:
Bogdan Drutu 2020-11-19 13:53:25 -05:00 committed by GitHub
parent f2bc1ad6bd
commit 03eafc2124
7 changed files with 13 additions and 33 deletions

View File

@ -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

2
.gitignore vendored
View File

@ -23,4 +23,4 @@ bin
.swp
# Misspell binary
.tools
internal/tools/bin

View File

@ -2,23 +2,24 @@
ALL_DOCS := $(shell find . -name '*.md' -not -path './.github/*' -type f | grep -v ^./node_modules | sort)
PWD := $(shell pwd)
TOOLS_DIR := ./.tools
MISSPELL_BINARY=$(TOOLS_DIR)/misspell
TOOLS_DIR := ./internal/tools
MISSPELL_BINARY=bin/misspell
MISSPELL = $(TOOLS_DIR)/$(MISSPELL_BINARY)
MARKDOWN_LINK_CHECK=markdown-link-check
MARKDOWN_LINT=markdownlint
.PHONY: 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
misspell:
$(MISSPELL_BINARY) -error $(ALL_DOCS)
$(MISSPELL) -error $(ALL_DOCS)
.PHONY: misspell-correction
misspell-correction:
$(MISSPELL_BINARY) -w $(ALL_DOCS)
$(MISSPELL) -w $(ALL_DOCS)
.PHONY: install-markdown-link-check
install-markdown-link-check:

5
go.mod
View File

@ -1,5 +0,0 @@
module github.com/open-telemetry/opentelemetry-specification
go 1.12
require github.com/client9/misspell v0.3.4

5
internal/tools/go.mod Normal file
View File

@ -0,0 +1,5 @@
module github.com/open-telemetry/opentelemetry-specification/internal/tools
go 1.12
require github.com/client9/misspell v0.3.4

View File

@ -15,7 +15,7 @@
// +build tools
package internal
package tools
// This file follows the recommendation at
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module