Skip to content
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

ci: make makefile and ci match #13208

Merged
merged 9 commits into from
Sep 9, 2022
Merged

ci: make makefile and ci match #13208

merged 9 commits into from
Sep 9, 2022

Conversation

faddat
Copy link
Contributor

@faddat faddat commented Sep 8, 2022

Description

This PR makes the Makefile match ci, and updates ci to use the canonical golangci-lint github action.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@faddat faddat requested a review from a team as a code owner September 8, 2022 18:58
Makefile Outdated Show resolved Hide resolved
package tools

import (
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
Copy link
Member

@julienrbrt julienrbrt Sep 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you go mod tidy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes totally!

faddat and others added 3 commits September 9, 2022 04:01
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Sep 8, 2022

Codecov Report

Merging #13208 (0491f70) into main (6a6e6c7) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #13208      +/-   ##
==========================================
- Coverage   53.72%   53.69%   -0.04%     
==========================================
  Files         652      647       -5     
  Lines       55407    55252     -155     
==========================================
- Hits        29770    29666     -104     
+ Misses      23256    23212      -44     
+ Partials     2381     2374       -7     
Impacted Files Coverage Δ
tx/textual/valuerenderer/valuerenderer.go
tx/textual/valuerenderer/bytes.go
tx/textual/valuerenderer/int.go
tx/textual/valuerenderer/timestamp.go
tx/textual/valuerenderer/dec.go
crypto/keys/internal/ecdsa/privkey.go 83.01% <0.00%> (+1.88%) ⬆️
x/distribution/simulation/operations.go 90.32% <0.00%> (+9.67%) ⬆️

@tac0turtle tac0turtle merged commit 40180cd into cosmos:main Sep 9, 2022
@@ -1,12 +0,0 @@
//go:build tools
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this broke main, I cant run make lint here as the make file was never updated correctly

if: env.GIT_DIFF
run: make lint
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why latest? this may cause issues when new versions come out and break ci unexpectedly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants