Skip to content

Commit

Permalink
Calculate code coverage and upload to coveralls.io
Browse files Browse the repository at this point in the history
- 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
thschmitt committed Oct 7, 2023
1 parent 9a984a9 commit 975fd81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![GitHub Release](https://img.shields.io/github/release/UiPath/uipathcli?style=flat-square)](https://github.com/UiPath/uipathcli/releases)
[![MIT License](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](https://github.com/UiPath/uipathcli/blob/main/LICENSE)
[![Documentation](https://img.shields.io/badge/Documentation-146e22?style=flat-square&logo=gitbook&logoColor=white)](https://uipath.github.io/uipathcli/)

# UiPath OpenAPI Command-Line-Interface (preview)

The UiPath OpenAPI CLI project is a command line interface to simplify, script and automate API calls for UiPath services. The CLI works on Windows, Linux and MacOS.
Expand Down Expand Up @@ -166,7 +170,6 @@ Response:
"Name": "Administrators",
"Type": "DirectoryGroup",
"UserName": "administrators"
...
}
]
}
Expand Down Expand Up @@ -404,8 +407,7 @@ uipath orchestrator users get --query "value[?Name == 'Administrator'] | [0]"
{
"Id": 123456,
"CreationTime": "2023-01-27T10:45:24.763Z",
"Name": "Administrator",
...
"Name": "Administrator"
}
```

Expand Down

0 comments on commit 975fd81

Please sign in to comment.