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

Optimize Go version matrix strategy for CI workflow #17

Conversation

svengreb
Copy link
Owner

Resolves #16

Before the CI workflow used a matrix strategy to run the `lint-go` and
`test` jobs, but this was improved to make the workflow run faster by
avoiding unnecessary steps:

- The `lint-go` job has been changed to only run on the currently latest
  stable Go version `1.15.x` [1] only on Linux because `golangci-lint`
  doesn't care about the Go version and OS it runs on but only
  statically checks the source code.
- The `test` job has been changed to only run on the currently latest
  stable Go version `1.15.x` [1].

These changes also help to keep the required GitHub Action run minutes
for the account of this repository as small as possible without wasting
resources for unnecessary tasks.

[1]: https://golang.org/doc/go1.15

GH-16
@svengreb svengreb added this to the Next milestone Sep 25, 2020
@svengreb svengreb self-assigned this Sep 25, 2020
@svengreb svengreb merged commit bda13d8 into main Sep 25, 2020
@svengreb svengreb deleted the improvement/gh-16-optimize-go-version-matrix-strategy-ci-workflow branch September 25, 2020 07:28
@svengreb svengreb removed their assignment Sep 25, 2020
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.

Optimize Go version matrix strategy for CI workflow
1 participant