Skip to content

Commit

Permalink
Merge 0a76fb7 into 5337638
Browse files Browse the repository at this point in the history
  • Loading branch information
iFaceless committed Jul 1, 2020
2 parents 5337638 + 0a76fb7 commit dfa2582
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v1
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.26

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ go:
- 1.12.x
- 1.13.x
before_install:
- 'export GO111MODULE=on'
- 'go get -v golang.org/x/lint/golint'
- 'go get -v github.com/kisielk/errcheck'
- 'go get -u github.com/golangci/golangci-lint/cmd/golangci-lint'
- 'go get -v golang.org/x/tools/cmd/cover'
- 'go get -v github.com/mattn/goveralls'
- 'export GO111MODULE=on'
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0


script:
- 'go mod tidy'
- '`go env GOPATH`/bin/golangci-lint run'
- 'go test -v -covermode=atomic -coverprofile=coverage.out -race'
- 'goveralls -coverprofile=coverage.out -service=travis-ci'
47 changes: 40 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,46 @@ module github.com/ifaceless/portal
go 1.13

require (
github.com/Djarvur/go-err113 v0.1.0 // indirect
github.com/bombsimon/wsl/v3 v3.1.0 // indirect
github.com/fatih/color v1.9.0 // indirect
github.com/fatih/structs v1.1.0
github.com/kr/pretty v0.1.0 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-critic/go-critic v0.5.0 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golangci/gocyclo v0.0.0-20180528144436-0a533e8fa43d // indirect
github.com/golangci/golangci-lint v1.26.0 // indirect
github.com/golangci/misspell v0.3.5 // indirect
github.com/golangci/revgrep v0.0.0-20180812185044-276a5c0a1039 // indirect
github.com/gostaticanalysis/analysisutil v0.1.0 // indirect
github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af // indirect
github.com/kisielk/errcheck v1.3.0 // indirect
github.com/mattn/go-colorable v0.1.7 // indirect
github.com/mitchellh/mapstructure v1.3.2 // indirect
github.com/panjf2000/ants/v2 v2.1.1
github.com/pkg/errors v0.8.1
github.com/sirupsen/logrus v1.4.2
github.com/spf13/cast v1.3.0
github.com/stretchr/testify v1.4.0
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
github.com/pelletier/go-toml v1.8.0 // indirect
github.com/pkg/errors v0.9.1
github.com/quasilyte/regex/syntax v0.0.0-20200419152657-af9db7f4a3ab // indirect
github.com/securego/gosec/v2 v2.3.0 // indirect
github.com/sirupsen/logrus v1.6.0
github.com/sourcegraph/go-diff v0.5.3 // indirect
github.com/spf13/afero v1.3.1 // indirect
github.com/spf13/cast v1.3.1
github.com/spf13/cobra v1.0.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.7.0 // indirect
github.com/stretchr/testify v1.6.1
github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b // indirect
github.com/tetafro/godot v0.3.7 // indirect
github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94 // indirect
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
golang.org/x/mod v0.3.0 // indirect
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect
golang.org/x/text v0.3.3 // indirect
golang.org/x/tools v0.0.0-20200701000337-a32c0cb1d5b2 // indirect
gopkg.in/ini.v1 v1.57.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
honnef.co/go/tools v0.0.1-2020.1.4 // indirect
mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7 // indirect
sourcegraph.com/sqs/pbtypes v1.0.0 // indirect
)

0 comments on commit dfa2582

Please sign in to comment.