Skip to content

Commit

Permalink
add github actions and initial readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed Jun 19, 2020
1 parent 6c4f707 commit 24be53b
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://golangci/golangci-lint:v1.23.8
with:
args: golangci-lint run
env:
CGO_ENABLED: 0
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Run Unit tests
run: go test -covermode atomic -coverprofile=profile.cov $(go list -m)/...
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# store

[![Go Report Card](https://goreportcard.com/badge/github.com/postfinance/store)](https://goreportcard.com/report/github.com/postfinance/store)
[![Coverage Status](https://coveralls.io/repos/github/postfinance/store/badge.svg?branch=master)](https://coveralls.io/github/postfinance/store?branch=master)
[![Build](https://github.com/postfinance/store/workflows/build/badge.svg)](https://github.com/postfinance/store/actions?query=workflow%3Abuild)

# Install

```bash
go get -v github.com/postfinance/store
```

2 changes: 1 addition & 1 deletion etcd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"io/ioutil"
"time"

"github.com/postfinance/store"
"github.com/coreos/etcd/clientv3"
"github.com/pkg/errors"
"github.com/postfinance/store"
"google.golang.org/grpc"
)

Expand Down
2 changes: 1 addition & 1 deletion etcd/etcdv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strings"
"time"

"github.com/postfinance/store"
"github.com/coreos/etcd/clientv3"
"github.com/pkg/errors"
"github.com/postfinance/store"
"google.golang.org/grpc"
)

Expand Down
2 changes: 1 addition & 1 deletion etcd/etcdv3_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package etcd_test
import (
"log"

"github.com/postfinance/store/etcd"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/pkg/errors"
"github.com/postfinance/store/etcd"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion etcd/etcdv3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"testing"
"time"

"github.com/postfinance/store"
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/integration"
"github.com/coreos/pkg/capnslog"
"github.com/pkg/errors"
"github.com/postfinance/store"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion hash/hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/pkg/errors"
"github.com/postfinance/store"
"github.com/postfinance/store/hash"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 24be53b

Please sign in to comment.