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 OS and Go version matrix strategy for CI workflow #13

Conversation

svengreb
Copy link
Owner

Resolves #12

before the CI workflow used a matrix strategy to run the `lint-node`,
`lint-go` and `test` jobs, but this also included steps that were not
necessary for this repository. This has been improved to make the
workflow run faster by avoiding unnecessary tasks:

- The `lint-node` job has been changed to only run on the currently
  latest stable Node version `14.x` [1] only on Linux because this
  repository is not focused on JavaScript but only runs Node based tools
  to lint other files within this repository.
- The `lint-go` job has been changed to only run on the currently latest
  stable Go version `1.15.x` [2] 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` [2] and only Linux and Windows while macOS
  is not necessary for this repository because there is no macOS
  specific code.

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://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.12.0
[2]: https://golang.org/doc/go1.15

GH-12
@svengreb svengreb added this to the 0.1.0 milestone Sep 24, 2020
@svengreb svengreb self-assigned this Sep 24, 2020
@svengreb svengreb merged commit 2fca9af into main Sep 24, 2020
@svengreb svengreb deleted the improvement/gh-12-optimize-os-and-go-matrix-strategy-ci-workflow branch September 24, 2020 11:11
@svengreb svengreb removed their assignment Sep 24, 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 OS and Go version matrix strategy for CI workflow
1 participant