diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..05bce8f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.16.x, 1.17.x] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Test + run: go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1382c59..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: go -script: - - go test -v ./... diff --git a/README.md b/README.md index 9664a37..0457c7f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# bibtex [![Build Status](https://travis-ci.org/nickng/bibtex.svg?branch=master)](https://travis-ci.org/nickng/bibtex) [![GoDoc](https://godoc.org/github.com/nickng/bibtex?status.svg)](http://godoc.org/github.com/nickng/bibtex) +# bibtex ![Build Status](https://github.com/nickng/bibtex/actions/workflows/test.yml/badge.svg) [![Go Reference](https://pkg.go.dev/badge/github.com/nickng/bibtex.svg)](https://pkg.go.dev/github.com/nickng/bibtex) ## `nickng/bibtex` is a bibtex parser and library for Go.