diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..330eaa1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build +on: [push, pull_request] +jobs: + test: + runs-on: "${{ matrix.os }}" + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + go: ["1.13"] + steps: + - uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + - uses: actions/checkout@v2 + - run: go test -v -race -coverprofile=netx.cov -coverpkg=./... ./... + - name: Send coverage + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: netx.cov + parallel: true + finish: + needs: test + runs-on: ubuntu-latest + steps: + - uses: shogo82148/actions-goveralls@v1 + with: + parallel-finished: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c998fd4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: go -go: -- 1.13.x -env: -- GO111MODULE=on -dist: xenial -before_script: -- go get golang.org/x/tools/cmd/cover -- go get github.com/mattn/goveralls -script: -- go test -v -race -coverprofile=coverage.cov -coverpkg=./... ./... -- $GOPATH/bin/goveralls -coverprofile=coverage.cov -service=travis-ci diff --git a/README.md b/README.md index 024d687..e31b082 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # github.com/ooni/netx -[![Build Status](https://travis-ci.org/ooni/netx.svg?branch=master)](https://travis-ci.org/ooni/netx) [![Coverage Status](https://coveralls.io/repos/github/ooni/netx/badge.svg?branch=master)](https://coveralls.io/github/ooni/netx?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/ooni/netx)](https://goreportcard.com/report/github.com/ooni/netx) +![Build Status](https://github.com/ooni/netx/workflows/Build/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/ooni/netx/badge.svg?branch=master)](https://coveralls.io/github/ooni/netx?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/ooni/netx)](https://goreportcard.com/report/github.com/ooni/netx) OONI extensions to the `net` and `net/http` packages. This code is used by `ooni/probe-engine` as a low level library to collect