diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0cc0978 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: test +on: + push: + branches: + - master +jobs: + test: + runs-on: 'ubuntu-latest' + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + - uses: actions/setup-go@v3 + with: + go-version: '1.19' + - run: go get -t -v ./... + - run: go test -race -coverprofile=coverage.out -covermode=atomic + - uses: codecov/codecov-action@v3 diff --git a/README.md b/README.md index 0d7c875..5936c22 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # melody -[![Build Status](https://travis-ci.org/olahol/melody.svg)](https://travis-ci.org/olahol/melody) -[![Coverage Status](https://img.shields.io/coveralls/olahol/melody.svg?style=flat)](https://coveralls.io/r/olahol/melody) +![Build Status](https://github.com/olahol/melody/actions/workflows/test.yml/badge.svg) [![GoDoc](https://godoc.org/github.com/olahol/melody?status.svg)](https://godoc.org/github.com/olahol/melody) > :notes: Minimalist websocket framework for Go.