Skip to content

Commit

Permalink
chore: Update coveralls setup
Browse files Browse the repository at this point in the history
Signed-off-by: Mikołaj Baranowski <mikolajb@gmail.com>
  • Loading branch information
mikolajb committed Sep 8, 2023
1 parent 3f3242c commit 9a68449
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,22 @@ on:
branches:
- main
pull_request:

jobs:
test:
name: Go Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup asdf
uses: asdf-vm/actions/setup@v1

- name: Run unit tests
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make go-test

- name: Report Coveralls
uses: coverallsapp/github-action@v2
with:
file: hack/release/coverage.out
1 change: 0 additions & 1 deletion .go-tools
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
github.com/caarlos0/svu@5b40c3113f8d7fd477f2410d8e14eaf835f3a76e
github.com/mattn/goveralls@602d73e9edb54427afabf600a676e4fcf09a2480
github.com/a8m/envsubst/cmd/envsubst@v1.4.2
github.com/itchyny/gojq/cmd/gojq@v0.12.13
3 changes: 1 addition & 2 deletions make/go.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.PHONY: go-test
go-test: go-lint
go-test: install-tool.golang install-tool.go.goveralls
go-test: install-tool.golang
cd hack/release && go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
cd hack/release && goveralls -coverprofile=coverage.out -service=github

.PHONY: mod-tidy
mod-tidy: install-tool.golang
Expand Down

0 comments on commit 9a68449

Please sign in to comment.