diff options
author | Steve Winslow <steve@swinslow.net> | 2020-06-13 15:00:27 -0400 |
---|---|---|
committer | Steve Winslow <steve@swinslow.net> | 2020-06-13 15:00:27 -0400 |
commit | 34c8eabdfd75bfac82d64453b00afeda05fe2a49 (patch) | |
tree | fecddce2ba1d7c7513885d025bfdd3191f01f703 | |
parent | feb87345dfd6d6f76a9b1fc2ef413a2e8a756be8 (diff) | |
download | spdx-tools-34c8eabdfd75bfac82d64453b00afeda05fe2a49.tar.gz |
Change CI from Travis to GitHub Actions
Signed-off-by: Steve Winslow <steve@swinslow.net>
-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 |