-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculate code coverage and upload to coveralls.io
- Run tests with code coverage enabled - Extend CI template to upload code coverage results to coveralls.io - Add release, license and documentation badges to README.md
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,18 @@ jobs: | |
run: go get . | ||
- name: Build | ||
run: go build . | ||
- name: Test | ||
run: go test -v ./... | ||
- name: Lint | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
golangci-lint run | ||
- name: Test | ||
run: go test -coverprofile="coverage.out" -coverpkg "$(go list github.com/UiPath/uipathcli/... | grep -v 'test' | tr '\n' ',')" ./... | ||
- name: Coverage | ||
env: | ||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
go install github.com/mattn/goveralls@latest | ||
goveralls -coverprofile="coverage.out" -service="github" | ||
- name: Package | ||
run: ./build.sh && ./package.sh | ||
- name: Upload packages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters