From bb676616d3770265fee08176d5888cb6ebe74adc Mon Sep 17 00:00:00 2001 From: Kyriacos Kyriacou Date: Wed, 4 Aug 2021 23:29:23 +0200 Subject: [PATCH] Delete travis in favor of Github actions --- .github/workflows/golangci-lint.yml | 19 +++++++++++++++++++ .golangci.yml | 4 ---- .travis.yml | 15 --------------- Makefile | 2 +- README.md | 1 - 5 files changed, 20 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/golangci-lint.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 0000000..057d2af --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,19 @@ +name: golangci-lint +on: + push: + tags: + - v* + branches: + - master + - main + pull_request: +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.29 diff --git a/.golangci.yml b/.golangci.yml index 7479b4c..45a6fe3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,12 +4,8 @@ linters: - wsl - gomnd - testpackage - - wrapcheck - - nlreturn - goerr113 - - exhaustivestruct - exhaustive - - cyclop - funlen issues: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8418e44..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go - -go: - - 1.16.x - - 1.14.x - - 1.13.x - - tip - -before_install: - - go get github.com/mattn/goveralls - -script: - - $GOPATH/bin/goveralls -service=travis-ci - - make lint - - make test \ No newline at end of file diff --git a/Makefile b/Makefile index 0e99a9c..a65c627 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ GOLANGCILINT=$(GOPATH)/bin/golangci-lint $(GOLANGCILINT): - curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.25.0 + curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.29.0 .PHONY: test test: diff --git a/README.md b/README.md index bddecb5..95a95d5 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@

godoc - build status semver tag go report card coverage status