Skip to content

Commit

Permalink
ci(github-actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzentenoe committed Aug 10, 2024
1 parent 9ba515b commit 713cb1e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: go mod tidy

- name: Test with Coverage
run: go test ./... -coverprofile=coverage.out -covermode=atomic
run: go test -coverprofile=coverage.out -covermode=atomic ./...

- name: Check Coverage
run: |
Expand All @@ -47,6 +47,18 @@ jobs:
env:
GO111MODULE: on

- name: Install gocover-cobertura
run: go install github.com/boumenot/gocover-cobertura@latest

- name: Convert coverage to Cobertura format
run: gocover-cobertura < coverage.out > coverage.xml

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.xml

- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest

Expand Down

0 comments on commit 713cb1e

Please sign in to comment.