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

[Merged by Bors] - Skip installation of golangci-lint on windows runners #6021

Closed
wants to merge 5 commits into from

Conversation

dsmello
Copy link
Contributor

@dsmello dsmello commented Jun 7, 2024

Motivation

Fix some issues we had on the GH Actions

Description

This PR solves the issue with the git checkout on the windows runner and the installation of the golangci/lint on windows too.

Test Plan

Run the CI workflow

@dsmello dsmello self-assigned this Jun 7, 2024
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.3%. Comparing base (1bc8cd6) to head (efefc5b).

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #6021   +/-   ##
=======================================
  Coverage     81.3%   81.3%           
=======================================
  Files          296     296           
  Lines        31672   31672           
=======================================
+ Hits         25769   25781   +12     
+ Misses        4222    4211   -11     
+ Partials      1681    1680    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Makefile Outdated Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
@dsmello dsmello requested a review from fasmat June 7, 2024 10:22
@fasmat fasmat changed the title [Draft] Test fix on GH CI workflow Skip installation of golangci-lint on windows runners Jun 7, 2024
@fasmat
Copy link
Member

fasmat commented Jun 7, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Jun 7, 2024
## Motivation

Fix some issues we had on the GH Actions



Co-authored-by: Matthias <5011972+fasmat@users.noreply.github.com>
@spacemesh-bors
Copy link

spacemesh-bors bot commented Jun 7, 2024

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Skip installation of golangci-lint on windows runners [Merged by Bors] - Skip installation of golangci-lint on windows runners Jun 7, 2024
@spacemesh-bors spacemesh-bors bot closed this Jun 7, 2024
@spacemesh-bors spacemesh-bors bot deleted the ci-fix branch June 7, 2024 13:29
Comment on lines +60 to +65
ifneq ($(OS),Windows_NT)
# On GH windows runners this fails at the moment: https://github.com/actions/runner-images/issues/10009
# since we don't run the linter on windows in the CI, we can skip this step for now
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $(GOLANGCI_LINT_VERSION)
endif

Copy link
Contributor

Choose a reason for hiding this comment

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

@fasmat It's not only used in CI but also by devs on Windows (IDK if there is anybody developing on Windows at present). Now make lint will fail with "command not found" error for them...

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.

None yet

3 participants