diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..428fc9d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.13.x, 1.14.x] + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Test + run: go test -v ./... \ No newline at end of file diff --git a/README.md b/README.md index a8285f3..1ebe52e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# go-vcsurl +# go-vcsurl [![GoDoc](https://godoc.org/github.com/gitsight/go-vcsurl?status.svg)](https://pkg.go.dev/github.com/gitsight/go-vcsurl) [![Test](https://github.com/gitsight/go-vcsurl/workflows/Test/badge.svg)](https://github.com/gitsight/go-vcsurl/actions?query=workflow%3ATest) + `go-vcsurl` library provides a VCS URL parser for HTTP, git or ssh remote URLs and also frontend URLs from providers like GitHub, GitLab, and Bitbucket.