Skip to content

Commit

Permalink
Merge pull request #4 from looplab/fix/github-actions
Browse files Browse the repository at this point in the history
Fix / Use Github Actions
  • Loading branch information
maxekman committed Mar 8, 2021
2 parents 109e66a + 4da9818 commit 871a1b1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 38 deletions.
31 changes: 31 additions & 0 deletions .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
7 changes: 2 additions & 5 deletions 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.
Expand All @@ -20,7 +19,6 @@ Gustavo Niemeyer: http://labix.org

For API docs and examples see http://godoc.org/github.com/looplab/tarjan


# Example

```go
Expand All @@ -41,7 +39,6 @@ fmt.Println(output)
// [[3 2 1] [7 6] [5 4] [8]]
```


# License

Tarjan is licensed under Apache License 2.0
Expand Down
33 changes: 0 additions & 33 deletions wercker.yml

This file was deleted.

0 comments on commit 871a1b1

Please sign in to comment.