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

Add golangci-lint and GitHub Actions workflow #968

Closed
wants to merge 11 commits into from

Conversation

umarcor
Copy link
Contributor

@umarcor umarcor commented Oct 2, 2019

Close #952

In this PR, Travis CI and CircleCI are deprecated in favour of a GitHub Actions workflow is added:

  • As proposed in GitHub Actions #952, GNU/Linux (ubuntu-latest), Windows and macOs platforms are tested.
  • Regarding golang versions, the proposed matrix includes 1.10.x, 1.11.x, 1.12.x, 1.13.x and 1.14.x.
  • Compared to the current Travis matrix, 1.10.x, 1.11.x and tip are removed and 1.13.x and 1.14.x are added. Note that tip 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

@jharshman
Copy link
Collaborator

@umarcor I would want to run these side by side with TravisCI and CircleCI to evaluate.

@umarcor
Copy link
Contributor Author

umarcor commented Oct 4, 2019

@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.

https://github.com/dbhi/cobra/commit/66d6f7314903ce18a459c9d2f9b1aaac7fbf1c24/checks?check_suite_id=252259674

@umarcor umarcor mentioned this pull request Oct 9, 2019
@umarcor umarcor marked this pull request as ready for review December 23, 2019 12:19
@umarcor
Copy link
Contributor Author

umarcor commented Dec 23, 2019

Request to be included in 1.0.0. Ref #959.

@umarcor
Copy link
Contributor Author

umarcor commented Apr 13, 2020

@jharshman, any chance of getting this merged? It would provide CI to any GitHub user, without requiring them to setup external services.

This was referenced Apr 13, 2020
@jharshman
Copy link
Collaborator

jharshman commented Apr 13, 2020

#952 (comment)

Our current experimentation with Github Actions haven't actually worked so far. So you see where I am reluctant to adopt this further.

@umarcor
Copy link
Contributor Author

umarcor commented Apr 13, 2020

As explained in #952 (comment), this PR is harmless, unlike #1074 and #1075.

@jharshman
Copy link
Collaborator

#952 (comment)

#1074 and #1075 do make permanent modifications in the repo
No these were less than low impact and do not make any permanent modifications or changes.

@umarcor I am all for using GH actions, but as of right now - I am not sold on the direction or utility. However, the other maintainers and myself will discuss it in planning.

@umarcor
Copy link
Contributor Author

umarcor commented May 11, 2020

@jharshman, any update?

FTR, exec time on GHA is ~2m, on Travis it's ~7min.

@umarcor
Copy link
Contributor Author

umarcor commented May 11, 2020

For the GHA test to show here, some dummy workflow needs to exist in the master branch of cobra.

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.

umarcor added a commit to umarcor/cobra that referenced this pull request May 11, 2020
@umarcor umarcor mentioned this pull request May 11, 2020
umarcor added a commit to umarcor/cobra that referenced this pull request May 11, 2020
umarcor added a commit to umarcor/cobra that referenced this pull request May 11, 2020
@umarcor
Copy link
Contributor Author

umarcor commented Dec 4, 2020

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).

/cc @jharshman @wfernandes @jpmcb

umarcor added a commit to umarcor/cobra that referenced this pull request Dec 4, 2020
@umarcor
Copy link
Contributor Author

umarcor commented Jan 30, 2021

Closed in favour of #1044.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub Actions
2 participants