-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add golangci-lint and GitHub Actions workflow #968
Conversation
@umarcor I would want to run these side by side with TravisCI and CircleCI to evaluate. |
I reverted removing the corresponding configuration files. For the GHA test to show here, some dummy workflow needs to exist in the master branch of cobra. |
a942682
to
1943240
Compare
@jharshman, any chance of getting this merged? It would provide CI to any GitHub user, without requiring them to setup external services. |
|
As explained in #952 (comment), this PR is harmless, unlike #1074 and #1075. |
|
@jharshman, any update? FTR, exec time on GHA is ~2m, on Travis it's ~7min. |
This is not required any more. Since some action workflow (the labeler) existed for some weeks, workflows contributed by PRs are now executed and shown both here and in https://github.com/spf13/cobra/actions. Hence, users willing to use GHA can cherry-pick the commit in this PR, regardless of the maintainers picking it. |
785a9c1
to
298c1c4
Compare
Since Travis CI scaled down and limited the resources for free open source accounts, CI runs take up to 3h to execute: https://travis-ci.org/github/spf13?tab=insights. This is not specific to this repo, but applies to many other projects. At the samme time, this PR has been working successfully for over a year now. The execution time of the longest test is 4m. Moreover, no breaking change is introduced, and golang-ci is added. Therefore, I'd like to ask maintainers to please make a decision. Either let me know what changes you expect, or please close this issue. Ref: #952 (comment). |
* field 'tc' * 'isEmpty', 'executeTemplate', 'writeStringToFile', 'update' and 'checkLackFiles' * 'writeToFile', 'commentifyString', 'stringInStringSlice' and 'exists'
Closed in favour of #1044. |
Close #952
In this PR
, Travis CI and CircleCI are deprecated in favour ofa GitHub Actions workflow is added:1.10.x
,1.11.x
,1.12.x
,1.13.x
and1.14.x
.Compared to the current Travis matrix,1.10.x
,1.11.x
andtip
are removed and1.13.x
and1.14.x
are added. Note thattip
is not supported in GitHub Actions by default yet (Support tip? actions/setup-go#21).Execution example: https://github.com/dbhi/cobra/commit/9bdf771ff8e6f415a56446759031a9864e4d6c50/checks?check_suite_id=248869625