Skip to content

Commit

Permalink
build: add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
cshum committed Jun 1, 2022
1 parent dc00b92 commit ae36bc4
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -3,4 +3,8 @@
.env
.idea
bin
.DS_Store
tmp/
.DS_Store
.vscode
bin/imagor
profile.cov
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -35,3 +35,9 @@ jobs:

- name: Test
run: make test

- name: Coveralls
if: matrix.os == 'ubuntu-20.04'
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -7,4 +7,5 @@ bin/
tmp/
.vscode/
.env
bin/imagor
bin/imagor
profile.cov
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ build:
CGO_CFLAGS_ALLOW=-Xpreprocessor go build -o bin/imagor ./cmd/imagor/main.go

test:
go clean -testcache && CGO_CFLAGS_ALLOW=-Xpreprocessor go test -cover ./...
go clean -testcache && CGO_CFLAGS_ALLOW=-Xpreprocessor go test -coverprofile=profile.cov ./...

dev: build
./bin/imagor -debug -imagor-unsafe

0 comments on commit ae36bc4

Please sign in to comment.