diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..894b067 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,23 @@ +name: Go +on: [push] +jobs: + test: + strategy: + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + go-version: ["1.12", "1.13"] + runs-on: ${{ matrix.platform }} + steps: + - name: Setup Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout + uses: actions/checkout@v1 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f9971ee..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go - -go: - - '1.6' - - '1.8' - - '1.10' - - '1.12' - -sudo: false diff --git a/README.md b/README.md index 3865b47..38c171d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Jump Consistent Hash -[![Build Status](https://travis-ci.org/lithammer/go-jump-consistent-hash.svg?branch=master)](https://travis-ci.org/lithammer/go-jump-consistent-hash) +[![Build Status](https://github.com/lithammer/go-jump-consistent-hash/workflows/Go/badge.svg)](https://github.com/lithammer/go-jump-consistent-hash/actions) [![Godoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/lithammer/go-jump-consistent-hash) Go implementation of the jump consistent hash algorithm[1] by John Lamping and Eric Veach.