-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Migrate from docker to composite run actions #46
Conversation
https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action It should be able to reuse the go build cache and share the same build context/environment by using the same default workspace instead of using Docker. It should resolve an issue such as #21 as well.
} | ||
|
||
func unused(unusedParam int) error { | ||
func unused1(unusedParam int) error { |
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.
[golangci-lint-github-pr-review] reported by reviewdog 🐶
unused1
is unused (deadcode)
x += 1 | ||
fmt.Sprintf("%d") | ||
|
||
os.Open("main.go") | ||
os.Open("main1.go") |
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.
[golangci-lint-github-pr-review] reported by reviewdog 🐶
Error return value of os.Open
is not checked (errcheck)
057096f
to
45188bf
Compare
45188bf
to
8754127
Compare
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.
I like this!
Moving from Docker to just running the shell commands makes sense since we don't need a clean/specific container to do stuff in. It helps a lot with speed too!
PATH="${TEMP_PATH}:$PATH" | ||
|
||
echo '::group::🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog' | ||
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b "${TEMP_PATH}" "${REVIEWDOG_VERSION}" 2>&1 |
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.
The install script picks the version to install based on the OS, so an ARM-based or Windows-based runner would get the expected version for their system. Nice!
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.
Thank you for your review! |
🚀 [bumpr] Bumped! New version:v1.11.0 Changes:v1.10.1...v1.11.0 |
https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action
It should be able to reuse the go build cache and share the same build
context/environment by using the same default workspace instead of using Docker.
It should resolve an issue such as #21 as well.