Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit 4e33f76

Browse files
committed
Added coveralls
1 parent de787b9 commit 4e33f76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+99
-88
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ jobs:
1818
run: |
1919
make test
2020
21+
- name: Install goveralls
22+
env:
23+
GO111MODULE: off
24+
run: go get github.com/mattn/goveralls
25+
26+
- name: Send coverage
27+
env:
28+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
29+
run: goveralls -coverprofile=covprofile -service=github
30+
2131
- name: End to end tests
2232
run: |
2333
make build-e2e e2e

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
.idea/
33
bin/
44
dist/
5+
6+
covprofile

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ builds:
1212
ldflags:
1313
- "-w"
1414
- "-s"
15-
- "-X github.com/getapid/apid-cli/svc/cli/cmd.version={{ .Version }}"
15+
- "-X github.com/getapid/cli/svc/cli/cmd.version={{ .Version }}"
1616
goos:
1717
- linux
1818
- openbsd

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
When contributing to this repository, please first discuss the change you wish to make via an [issue](https://github.com/getapid/apid-cli/issues) with the community before making a change. Use the templates for feature requests and bug reports if applicable.
3+
When contributing to this repository, please first discuss the change you wish to make via an [issue](https://github.com/getapid/cli/issues) with the community before making a change. Use the templates for feature requests and bug reports if applicable.
44

55
Note we have a code of conduct, please follow it in all your interactions with the project.
66

@@ -12,7 +12,7 @@ You can find instructions on how to compile and test the project in the [README]
1212

1313
1. Fork the repo under your account or organization and do the change there. Once done, submit a PR from your forked repo to this one.
1414

15-
1. Complete the checklist in the Github [PR template](.github/pull_request_template.md).
15+
1. Complete the checklist in the Github [PR template](.github/pull_request_template.md).
1616

1717
1. You will need one sign off from any of the maintainers. They are responsible for merging the PR.
1818

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BIN:=bin/apid
22
OSARCHLIST:=`cat svc/cli/osarchlist`
3-
GOFLAGS:=-ldflags "-X github.com/getapid/apid-cli/svc/cli/cmd.version=$(VERSION)"
3+
GOFLAGS:=-ldflags "-X github.com/getapid/cli/svc/cli/cmd.version=$(VERSION)"
44

55
all: test
66

@@ -24,7 +24,7 @@ mock:
2424
go generate ./...
2525

2626
test:
27-
go test $(GOFLAGS) ./...
27+
go test $(GOFLAGS) -race -covermode atomic -coverprofile=covprofile ./...
2828

2929
e2e-test: build
3030
$(BIN) check -c testapi/tests/

common/command/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"strings"
1313
"time"
1414

15-
"github.com/getapid/apid-cli/common/log"
16-
"github.com/getapid/apid-cli/common/variables"
15+
"github.com/getapid/cli/common/log"
16+
"github.com/getapid/cli/common/variables"
1717
)
1818

1919
type Executor interface {

common/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package config
22

33
import (
4-
"github.com/getapid/apid-cli/common/transaction"
5-
"github.com/getapid/apid-cli/common/variables"
4+
"github.com/getapid/cli/common/transaction"
5+
"github.com/getapid/cli/common/variables"
66
)
77

88
// Config holds the internal representation of the config. It has yaml tags to allow to marshalling

common/config/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"path/filepath"
88
"strings"
99

10-
"github.com/getapid/apid-cli/common/transaction"
10+
"github.com/getapid/cli/common/transaction"
1111
"gopkg.in/yaml.v3"
1212
)
1313

common/config/loader_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"os"
88
"testing"
99

10-
"github.com/getapid/apid-cli/common/step"
11-
"github.com/getapid/apid-cli/common/transaction"
12-
"github.com/getapid/apid-cli/common/variables"
10+
"github.com/getapid/cli/common/step"
11+
"github.com/getapid/cli/common/transaction"
12+
"github.com/getapid/cli/common/variables"
1313
"github.com/stretchr/testify/suite"
1414
"gopkg.in/yaml.v2"
1515
)

common/config/validators.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/getapid/apid-cli/common/step"
7+
"github.com/getapid/cli/common/step"
88
"github.com/robfig/cron"
99
"go.uber.org/multierr"
1010
)

0 commit comments

Comments
 (0)