diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9aa49e2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Main + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + + - name: Test + run: go test -coverprofile=coverage.out ./... + + - name: Convert coverage + uses: jandelgado/gcov2lcov-action@v1.0.5 + + - name: Upload coverage + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + path-to-lcov: coverage.lcov diff --git a/README.md b/README.md index 0479ced..ca82202 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -[![wercker status](https://app.wercker.com/status/78c21e65a51c7d938faf021bd3220916/s "wercker status")](https://app.wercker.com/project/bykey/78c21e65a51c7d938faf021bd3220916) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/looplab/tarjan)](https://pkg.go.dev/github.com/looplab/tarjan) +![Bulid Status](https://github.com/looplab/tarjan/actions/workflows/main.yml/badge.svg) [![Coverage Status](https://img.shields.io/coveralls/looplab/tarjan.svg)](https://coveralls.io/r/looplab/tarjan) -[![GoDoc](https://godoc.org/github.com/looplab/tarjan?status.svg)](https://godoc.org/github.com/looplab/tarjan) [![Go Report Card](https://goreportcard.com/badge/looplab/tarjan)](https://goreportcard.com/report/looplab/tarjan) - # Tarjan Tarjan is a graph loop detection function using Tarjan's algorithm. @@ -20,7 +19,6 @@ Gustavo Niemeyer: http://labix.org For API docs and examples see http://godoc.org/github.com/looplab/tarjan - # Example ```go @@ -41,7 +39,6 @@ fmt.Println(output) // [[3 2 1] [7 6] [5 4] [8]] ``` - # License Tarjan is licensed under Apache License 2.0 diff --git a/wercker.yml b/wercker.yml deleted file mode 100644 index fd34744..0000000 --- a/wercker.yml +++ /dev/null @@ -1,33 +0,0 @@ -box: golang - -dev: - steps: - - internal/watch: - code: | - go build ./... - reload: true - -build: - steps: - - wercker/setup-go-workspace: - package-dir: github.com/looplab/tarjan - - - wercker/golint - - - script: - name: go get - code: | - cd $WERCKER_SOURCE_DIR - go version - go get -t ./... - - - script: - name: go build - code: | - go build ./... - - - script: - name: go test - code: | - go get github.com/mattn/goveralls - goveralls -v -service wercker.com