From 2e64e45d1051499a4e32bb46d568ee308a53b637 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Sun, 12 Sep 2021 17:07:20 -0400 Subject: [PATCH 1/2] CI: use debian-based images, only test -race on amd64 debian-based images have gcc (needed for -race) and git (possible with alpine image but would need more install steps) go test -race is not supported on 386 Also, go test without -v, but list tests first: go-diskqueue tests produce a lot of distracting error logging output, and if a test fails, a pretty good amount of logging context is provided. --- .github/workflows/test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3e8636d..d32a127b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - "amd64" - "386" - container: "golang:${{matrix.gover}}-alpine" + container: "golang:${{matrix.gover}}" env: GOARCH: "${{matrix.goarch}}" @@ -30,8 +30,12 @@ jobs: - name: test run: | - GOMAXPROCS=1 go test -v - GOMAXPROCS=4 go test -v -race + go test -list Test + GOMAXPROCS=1 go test + if [ "$GOARCH" = "amd64" ]; then + echo "With -race:" + GOMAXPROCS=4 go test -race + fi - name: lint run: | From 31c99977909cf9d699a65a469174b7cf0fbc7ec0 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Sun, 12 Sep 2021 17:07:50 -0400 Subject: [PATCH 2/2] README: update build/test and docs badges switch Travic-CI badge to a GitHub Actions badge update GoDoc badge to pkg.go.dev "Go Reference" badge (it was already being redirecting to the new site) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5605a061..c0696783 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # go-diskqueue -[![Build Status](https://secure.travis-ci.org/nsqio/go-diskqueue.png?branch=master)](http://travis-ci.org/nsqio/go-diskqueue) [![GoDoc](https://godoc.org/github.com/nsqio/go-diskqueue?status.svg)](https://godoc.org/github.com/nsqio/go-diskqueue) [![GitHub release](https://img.shields.io/github/release/nsqio/go-diskqueue.svg)](https://github.com/nsqio/go-diskqueue/releases/latest) +[![Build Status](https://github.com/nsqio/go-diskqueue/workflows/tests/badge.svg)](https://github.com/nsqio/go-diskqueue/actions) [![Go Reference](https://pkg.go.dev/badge/github.com/nsqio/go-diskqueue.svg)](https://pkg.go.dev/github.com/nsqio/go-diskqueue) [![GitHub release](https://img.shields.io/github/release/nsqio/go-diskqueue.svg)](https://github.com/nsqio/go-diskqueue/releases/latest) A Go package providing a filesystem-backed FIFO queue