Skip to content

Commit

Permalink
ci(deps): Enable Codecov and bump golangci/golangci-lint-action from …
Browse files Browse the repository at this point in the history
…4 to 5 (#1854)

* chore(deps): Bump golangci/golangci-lint-action from 4 to 5

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v4...v5)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* ci: add CODECOV_TOKEN env var to secrets

* ci settings

* Updated changelog - dependabot

* refactor: run just fmt

---------

Signed-off-by: Unique-Divine <[email protected]>
Co-authored-by: Unique-Divine <[email protected]>
Co-authored-by: dependabot[bot] <[email protected]>
  • Loading branch information
3 people authored Apr 27, 2024
1 parent 5fa6bc7 commit 072de03
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ coverage:
project:
default:
if_not_found: success
if_ci_failed: error
target: auto
target: 66%
threshold: 1% # Allow coverage to drop by X%, posting a success status.
# removed_code_behavior: Takes values [off, removals_only, adjust_base]
removed_code_behavior: adjust_base
patch:
default:
target: 70%
target: 69%

comment: # this is a top-level key
layout: " diff, flags, files"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
key: go-mod-cache-${{ hashFiles('**/go.sum') }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v5
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.54.2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ jobs:

- name: "Upload coverage reports to Codecov"
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump `golang.org/x/net` from 0.0.0-20220607020251-c690dde0001d to 0.23.0 in /geth ([#1849](https://github.com/NibiruChain/nibiru/pull/1849))
- Bump `golang.org/x/net` from 0.20.0 to 0.23.0 ([#1850](https://github.com/NibiruChain/nibiru/pull/1850))
- Bump `github.com/supranational/blst` from 0.3.8-0.20220526154634-513d2456b344 to 0.3.11 ([#1851](https://github.com/NibiruChain/nibiru/pull/1851))
- Bump `golangci/golangci-lint-action` from 4 to 5 ([#1854](https://github.com/NibiruChain/nibiru/pull/1854))

## [v1.2.0](https://github.com/NibiruChain/nibiru/releases/tag/v1.2.0) - 2024-03-28

Expand Down
3 changes: 1 addition & 2 deletions x/oracle/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ package types

import (
"fmt"
"sync/atomic"

"github.com/cometbft/cometbft/crypto/tmhash"

"sync/atomic"

sdkerrors "cosmossdk.io/errors"
)

Expand Down

0 comments on commit 072de03

Please sign in to comment.