-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: enable coverage #439
base: master
Are you sure you want to change the base?
*: enable coverage #439
Changes from all commits
1a56df5
c766767
3a7fdb4
0c05b45
06209ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,34 @@ jobs: | |
- name: Test | ||
run: go test -v ./... | ||
|
||
cover: | ||
name: Coverage | ||
runs-on: ubuntu-22.04 | ||
|
||
env: | ||
CGO_ENABLED: 0 | ||
GOEXPERIMENT: nocoverageredesign | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likely can be avoided here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, it can't on my machine. But this action uses Go 1.23, so may be we should try. |
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23' | ||
cache: true | ||
|
||
- name: Write coverage profile | ||
run: go test -v ./... -coverprofile=./coverage.txt -coverpkg=./contracts/... | ||
|
||
- name: Upload coverage results to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: true # if something is wrong on uploading codecov results, then this job will fail | ||
files: ./coverage.txt | ||
slug: nspcc-dev/neofs-contract | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
|
||
build: | ||
name: Build contracts and RPC bindings | ||
runs-on: ubuntu-latest | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest?