Setup Github Action for CI

close #1

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-04-28 10:47:03 +02:00
parent d612a4ab89
commit 52440a4732
3 changed files with 17 additions and 1 deletions

View File

@ -7,4 +7,7 @@ test: ## Run tests
dev: build
ln -f -s "${PWD}/dist/docker-ecs" "${HOME}/.docker/cli-plugins/docker-ecs"
.PHONY: build test dev
lint: ## Verify Go files
golangci-lint run --config ./golangci.yaml ./...
.PHONY: clean build test dev lint

12
ecs/golangci.yaml Normal file
View File

@ -0,0 +1,12 @@
run:
deadline: 2m
linters:
disable-all: true
enable:
- gofmt
- goimports
- golint
- gosimple
- ineffassign
- misspell

View File

@ -2,6 +2,7 @@ package amazon
import (
"errors"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ecs"
"github.com/sirupsen/logrus"