Skip to content

Commit

Permalink
Merge pull request #145 from gocelery/action
Browse files Browse the repository at this point in the history
better github action integration
  • Loading branch information
yoonsio committed Jul 14, 2020
2 parents 1a3d0d7 + 14cf63d commit dc280ff
Show file tree
Hide file tree
Showing 4 changed files with 669 additions and 15 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
name: Go
on: [push]
jobs:
build:
name: Test
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
test:
name: test
runs-on: ubuntu-latest
services:
redis:
Expand All @@ -25,17 +35,11 @@ jobs:
- name: Install dependencies
run: |
go mod download
- name: Build
run: go build -v .
- name: Lint
run: |
GO111MODULE=off go get github.com/golangci/golangci-lint/cmd/golangci-lint
$(go env GOPATH)/bin/golangci-lint run
- name: Test
run: go test -v -covermode atomic -coverprofile=profile.cov ./...
- name: Coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
build:
go install .

.PHONY: build-lint
build-lint:
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint

.PHONY: lint
lint: build-lint
lint:
golangci-lint run

.PHONY: test
Expand Down
29 changes: 28 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,36 @@ module github.com/gocelery/gocelery
go 1.13

require (
github.com/Djarvur/go-err113 v0.1.0 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golangci/golangci-lint v1.28.3 // indirect
github.com/golangci/misspell v0.3.5 // indirect
github.com/golangci/revgrep v0.0.0-20180812185044-276a5c0a1039 // indirect
github.com/gomodule/redigo v2.0.0+incompatible
github.com/gostaticanalysis/analysisutil v0.1.0 // indirect
github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/kyoh86/exportloopref v0.1.7 // indirect
github.com/mitchellh/mapstructure v1.3.2 // indirect
github.com/nishanths/exhaustive v0.0.0-20200708172631-8866003e3856 // indirect
github.com/pelletier/go-toml v1.8.0 // indirect
github.com/quasilyte/go-ruleguard v0.1.2 // indirect
github.com/quasilyte/regex/syntax v0.0.0-20200419152657-af9db7f4a3ab // indirect
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b
github.com/spf13/afero v1.3.1 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
github.com/stretchr/objx v0.2.0 // indirect
github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b // indirect
github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94 // 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-20200713011307-fd294ab11aed // indirect
gopkg.in/ini.v1 v1.57.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
mvdan.cc/gofumpt v0.0.0-20200709182408-4fd085cb6d5f // indirect
mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7 // indirect
sourcegraph.com/sqs/pbtypes v1.0.0 // indirect
)

0 comments on commit dc280ff

Please sign in to comment.