diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index cb2f734a..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,26 +0,0 @@ -version: 2 -workflows: - version: 2 - test: - jobs: - - test-1.15 - - test-1.16 -jobs: - test-1.15: - docker: - - image: "circleci/golang:1.15" - steps: &ref_0 - - checkout - - restore_cache: - keys: - - go-mod-{{ checksum "go.sum" }} - - run: go test -v ./... - - run: go install ./... - - save_cache: - key: go-mod-{{ checksum "go.sum" }} - paths: - - "/go/pkg/mod" - test-1.16: - docker: - - image: "circleci/golang:1.16" - steps: *ref_0 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 33841df3..cee9fe2c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,7 +4,7 @@ jobs: test-linux: strategy: matrix: - go-version: [1.15.x, 1.16.x] + go-version: [1.16.x, 1.17.x] runs-on: ubuntu-latest steps: - name: Install Go @@ -20,7 +20,7 @@ jobs: test-macos: strategy: matrix: - go-version: [1.15.x, 1.16.x] + go-version: [1.16.x, 1.17.x] runs-on: macos-latest steps: - name: Install Go @@ -36,7 +36,7 @@ jobs: test-windows: strategy: matrix: - go-version: [1.15.x, 1.16.x] + go-version: [1.16.x, 1.17.x] runs-on: windows-latest steps: - name: Install Go diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index a5c4d732..a2508a68 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -17,7 +17,7 @@ jobs: uses: golangci/golangci-lint-action@v2 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.39 + version: "latest" # Optional: golangci-lint command line arguments. args: --issues-exit-code=1 --timeout=3m0s --tests=false --no-config --max-issues-per-linter=4095 --max-same-issues=1023 --disable-all --enable=deadcode --enable=errcheck --enable=gosimple --enable=govet --enable=ineffassign --enable=staticcheck --enable=structcheck --enable=typecheck --enable=unused --enable=varcheck --enable=bodyclose --enable=dogsled --enable=goconst --enable=gofmt --enable=goimports --enable=golint --enable=goprintffuncname --enable=gosec --enable=misspell --enable=nakedret --enable=prealloc --enable=rowserrcheck --enable=stylecheck --enable=unconvert --enable=unparam --enable=exportloopref --enable=gomodguard --enable=asciicheck --enable=errorlint # Optional: show only new issues if it's a pull request. The default value is `false`. diff --git a/README.md b/README.md index 3b98b691..c6cc36ce 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ PFCP implementation in Golang. -[![CircleCI](https://circleci.com/gh/wmnsk/go-pfcp.svg?style=shield)](https://circleci.com/gh/wmnsk/go-pfcp) +![CI status](https://github.com/wmnsk/go-pfcp/actions/workflows/go.yml/badge.svg) [![GoDoc](https://godoc.org/github.com/wmnsk/go-pfcp?status.svg)](https://godoc.org/github.com/wmnsk/go-pfcp) [![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/wmnsk/go-pfcp/blob/master/LICENSE) diff --git a/go.mod b/go.mod index b3b4de8f..7885d5a6 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,10 @@ module github.com/wmnsk/go-pfcp -go 1.16 +go 1.17 require ( github.com/google/go-cmp v0.5.5 github.com/pascaldekloe/goe v0.1.0 - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect ) + +require golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect