diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..4a37d5b --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,26 @@ +on: pull_request + +jobs: + test: + strategy: + matrix: + go-version: [1.13, 1.14, 1.15] + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Install dependencies + run: go get -t ./... + + - name: Test + run: go test -coverprofile=coverage.txt -covermode=atomic + + - name: Upload coverage to codecov + uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5e9b715..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go -sudo: false - -go: -- 1.5.1 -- 1.6.3 -- 1.7 -- 1.8 -- 1.9 - -script: -- go test -coverprofile=coverage.txt -covermode=atomic - -after_success: -- bash <(curl -s https://codecov.io/bash)