Skip to content

Proposal: Clean up CI job a bit #727

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

Merged
merged 8 commits into from
Oct 5, 2021
Merged

Proposal: Clean up CI job a bit #727

merged 8 commits into from
Oct 5, 2021

Conversation

defaude
Copy link
Contributor

@defaude defaude commented Oct 3, 2021

relates to #586 and #720

Added npm scripts for doctest and style checking via standard. This allows us to call those directly via npm and not via npx.

The CI job itself is now split into distinct steps (makes it more visible which step failed).

@defaude
Copy link
Contributor Author

defaude commented Oct 3, 2021

Sweet! The "Continuous Integration" job looks quite nice now, doesn't it?

@defaude
Copy link
Contributor Author

defaude commented Oct 3, 2021

The job that's updating the DIRECTORY.md file has been cleaned up quite a bit, too. It's now faster and only creates a commit when there's actually a change.

@lgtm-com
Copy link

lgtm-com bot commented Oct 3, 2021

This pull request introduces 1 alert and fixes 4 when merging 50638f2 into c1b6fca - view on LGTM.com

new alerts:

  • 1 for Incomplete string escaping or encoding

fixed alerts:

  • 3 for Missing variable declaration
  • 1 for Incomplete string escaping or encoding

@raklaptudirm raklaptudirm added the on hold Being discussed by the maintainers label Oct 4, 2021
@raklaptudirm
Copy link
Member

Could you fix the emerged issues?

@defaude
Copy link
Contributor Author

defaude commented Oct 5, 2021

I did not really introduce a new bug - I just applied standard to the code and it switched from a double-quoted string to a single-quoted string. The error was there all along, but a fix is done quickly - coming right up :)

@defaude defaude requested a review from raklaptudirm as a code owner October 5, 2021 08:19
@lgtm-com
Copy link

lgtm-com bot commented Oct 5, 2021

This pull request fixes 4 alerts when merging 7a9de4c into 17ac987 - view on LGTM.com

fixed alerts:

  • 3 for Missing variable declaration
  • 1 for Incomplete string escaping or encoding

@raklaptudirm raklaptudirm requested a review from cclauss October 5, 2021 08:53
@raklaptudirm
Copy link
Member

@cclauss knows better about these files than me, please wait for their review.

Copy link
Member

@cclauss cclauss left a comment

Choose a reason for hiding this comment

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

RSLGTM

@raklaptudirm
Copy link
Member

@defaude Please resolve the conflicts so that it can be merged.

@raklaptudirm raklaptudirm added Reviewed and removed on hold Being discussed by the maintainers labels Oct 5, 2021
@cclauss
Copy link
Member

cclauss commented Oct 5, 2021

This job OVERWRITES DIRECTORY.md.

relates to #586 and #720

Added npm scripts for doctest and style checking via standard. This allows us to call those directly via npm and not via npx.

The CI job itself is now split into distinct steps (makes it more visible which step failed).
relates to ##720

Cleaned up and updated the job description file a bit. Instead of attempting to commit every single time, we check if the DIRECTORY file actually has changes first.
Uses globby to find all algorithm files. This is way quicker and less error-prone than the previous implementation. Plus, it allows us to fine-tune excludes (e.g. test files and the babel config).

This also removes the need for setTimeouts which greatly speeds up the whole thing.
@defaude
Copy link
Contributor Author

defaude commented Oct 5, 2021

The only conflict is the auto-generated DIRECTORY.md - and yes, this job deliberately overwrites this file (and has been doing so for quite some time before my refactoring, after all) ;)

I just updated it once more by rebasing on the current master - let's just hope no other changes are streaming in ;)

@lgtm-com
Copy link

lgtm-com bot commented Oct 5, 2021

This pull request fixes 4 alerts when merging 565ce68 into 90b04ea - view on LGTM.com

fixed alerts:

  • 3 for Missing variable declaration
  • 1 for Incomplete string escaping or encoding

@raklaptudirm raklaptudirm merged commit c78bc35 into TheAlgorithms:master Oct 5, 2021
@defaude defaude deleted the fix/586-build-pipeline branch October 5, 2021 09:40
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.

3 participants