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: | 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