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

action: use official github action for golangci-lint #1549

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

Desiki-high
Copy link
Member

Relevant Issue (if applicable)

N/A.

Details

  1. separate contrib-test and golang lint by contrib-lint.
  2. add contrib-lint in smoke test. So we don't need to install golangci-lint manually.

Types of changes

What types of changes does your PullRequest introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation Update (if none of the other choices apply)

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@Desiki-high Desiki-high requested review from a team as code owners February 18, 2024 09:29
@Desiki-high Desiki-high requested review from bergwolf, imeoer and gaius-qi and removed request for a team February 18, 2024 09:29
@Desiki-high Desiki-high force-pushed the golangci-lint-action branch 2 times, most recently from 00917aa to 6fc67be Compare February 18, 2024 09:38
Copy link

codecov bot commented Feb 18, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (d7ea50e) 61.39% compared to head (c6341bf) 61.39%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1549   +/-   ##
=======================================
  Coverage   61.39%   61.39%           
=======================================
  Files         144      144           
  Lines       46962    46962           
  Branches    44498    44498           
=======================================
  Hits        28832    28832           
  Misses      16646    16646           
  Partials     1484     1484           
Files Coverage Δ
contrib/nydusify/pkg/utils/archive.go 46.82% <0.00%> (ø)

... and 1 file with indirect coverage changes

Copy link
Member

@adamqqqplay adamqqqplay left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Can you squash these commits first?

@Desiki-high Desiki-high force-pushed the golangci-lint-action branch 2 times, most recently from 54598c5 to 1350827 Compare February 20, 2024 05:09
1. Use the official GitHub action for golangci-lint from its authors.
2. fix golang lint error with v1.56
3. separate test and golang lint.Sometimes we need tests without golang lint and sometimes we just want to do golang lint.

Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@Desiki-high Desiki-high merged commit 7b3cc50 into dragonflyoss:master Feb 21, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants