diff options
-rw-r--r-- | .github/workflows/build.yml | 16 | ||||
-rw-r--r-- | .travis.yml | 13 |
2 files changed, 16 insertions, 13 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..38e4b86 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + +jobs: + tests: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@master + - uses: actions/setup-go@v2 + with: + go-version: '1.14' + - name: Run tests + run: go test -v -covermode=count -coverprofile=profile.cov ./... + - name: Send coverage report to coveralls + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6e30a40..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later - -language: go -sudo: false -go: - - "1.10" - -before_install: - - go get github.com/mattn/goveralls - -script: - - go test -coverprofile=tools-golang.cov ./... - - $GOPATH/bin/goveralls -coverprofile=tools-golang.cov -service=travis-ci |