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

Migrate from docker to composite run actions #46

Merged
merged 12 commits into from
Aug 16, 2020
Merged

Conversation

haya14busa
Copy link
Member

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.

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 {
Copy link
Contributor

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")
Copy link
Contributor

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)

@haya14busa
Copy link
Member Author

This PR improves a whole action speed as well. 30s -> 6s

Before:

image

After:

image

Copy link

@Vlaaaaaaad Vlaaaaaaad left a 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

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!

shogo82148 added a commit to shogo82148/aws-xray-yasdk-go that referenced this pull request Aug 16, 2020
Copy link
Contributor

@shogo82148 shogo82148 left a comment

Choose a reason for hiding this comment

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

Awesome!

My reviewdog job is now 20 seconds faster 🎉
image

shogo82148/aws-xray-yasdk-go#106

@haya14busa
Copy link
Member Author

Thank you for your review!

@haya14busa haya14busa merged commit e365c43 into master Aug 16, 2020
@haya14busa haya14busa deleted the composite-run branch August 16, 2020 07:24
@github-actions
Copy link
Contributor

🚀 [bumpr] Bumped! New version:v1.11.0 Changes:v1.10.1...v1.11.0

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.

None yet

3 participants