forked from gocraft/work
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wait more time to let the observers start * bump go version to 1.18 * update deps * add dependabot and gh-action ci * fix ci tests * use actual redigo 1.8.9 instead of abandoned 2.0.0
- Loading branch information
Showing
7 changed files
with
79 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CI | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
go: ["1.18", "1.19"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
cache: true | ||
|
||
- name: Run tests | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
.PHONY: test-setup | ||
test-setup: | ||
help: | ||
@echo "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' | column -c2 -t -s :)" | ||
.PHONY: help | ||
|
||
test-setup: ## Prepare infrastructure for tests | ||
@echo "+ $@" | ||
docker-compose up -d | ||
.PHONY: test-setup | ||
|
||
.PHONY: test-teardown | ||
test-teardown: | ||
test-teardown: ## Bring down test infrastructure | ||
@echo "+ $@" | ||
docker-compose rm -fsv | ||
.PHONY: test-teardown | ||
|
||
.PHONY: test-run | ||
test-run: | ||
test-run: ## Run tests | ||
@echo "+ $@" | ||
go test -v -p 1 -race -coverprofile=coverage.txt -covermode=atomic ./... | ||
.PHONY: test-run | ||
|
||
test: test-setup test-run test-teardown ## Prepare infrastructure and run tests | ||
.PHONY: test | ||
test: test-setup test-run test-teardown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
module github.com/GettEngineering/work | ||
|
||
go 1.14 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/albrow/jobs v0.4.2 | ||
github.com/benmanns/goworker v0.1.3 | ||
github.com/braintree/manners v0.0.0-20160418043613-82a8879fc5fd | ||
github.com/gocraft/health v0.0.0-20170925182251-8675af27fef0 | ||
github.com/gocraft/web v0.0.0-20190207150652-9707327fb69b | ||
github.com/gomodule/redigo v1.8.9 | ||
github.com/jrallison/go-workers v0.0.0-20180112190529-dbf81d0b75bb | ||
github.com/robfig/cron/v3 v3.0.1 | ||
github.com/stretchr/testify v1.7.0 | ||
) | ||
|
||
require ( | ||
github.com/bitly/go-simplejson v0.5.0 // indirect | ||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect | ||
github.com/braintree/manners v0.0.0-20160418043613-82a8879fc5fd | ||
github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575 // indirect | ||
github.com/customerio/gospec v0.0.0-20130710230057-a5cc0e48aa39 // indirect | ||
github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5 // indirect | ||
github.com/davecgh/go-spew v1.1.0 // indirect | ||
github.com/dchest/uniuri v1.2.0 // indirect | ||
github.com/dustin/go-humanize v1.0.0 // indirect | ||
github.com/garyburd/redigo v1.6.0 // indirect | ||
github.com/gocraft/health v0.0.0-20170925182251-8675af27fef0 | ||
github.com/gocraft/web v0.0.0-20190207150652-9707327fb69b | ||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect | ||
github.com/gomodule/redigo v2.0.0+incompatible | ||
github.com/jrallison/go-workers v0.0.0-20180112190529-dbf81d0b75bb | ||
github.com/garyburd/redigo v1.6.4 // indirect | ||
github.com/golang/glog v1.0.0 // indirect | ||
github.com/kr/pretty v0.2.0 // indirect | ||
github.com/orfjackal/nanospec.go v0.0.0-20120727230329-de4694c1d701 // indirect | ||
github.com/robfig/cron/v3 v3.0.1 | ||
github.com/stretchr/testify v1.5.1 | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/youtube/vitess v2.1.1+incompatible // indirect | ||
golang.org/x/net v0.0.0-20200425230154-ff2c4b7c35a0 // indirect | ||
golang.org/x/net v0.5.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters