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

internal tooling improvements #1159

Merged
25 commits merged into from
Feb 23, 2021
Merged

internal tooling improvements #1159

25 commits merged into from
Feb 23, 2021

Conversation

ghost
Copy link

@ghost ghost commented Feb 19, 2021

  • standardizes our shebang
  • adds a few notes to maintaining.md
    • lints that document
  • adds shellcheck

I was mistaken about exercism/github-actions exposing a shellcheck action. I just copied their workflow configuration into our single tests.yml.
Closes #1110.

@ghost
Copy link
Author

ghost commented Feb 19, 2021

Some files appear unused:

  • check-stubs.sh
  • _test/check-configlet-fmt.sh

I searched a local checkout with rg -hidden check.stubs.sh etc.
I will remove them upon a 👍 .

@ghost ghost requested a review from coriolinus February 23, 2021 00:28
@ghost
Copy link
Author

ghost commented Feb 23, 2021

This is ready to review :).
Thank you again for the shellcheck reference.
It also fixes a recent bug with check uuids.

Copy link
Member

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

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

A few nits and one mistake, but overall looks good! Thanks for cleaning up the scripts; that was a long term todo that I just never got around to. Just fix the items below before merging, please.

_test/check-exercise-crate.sh Show resolved Hide resolved
_test/check-uuids.sh Outdated Show resolved Hide resolved
_test/ensure-stubs-compile.sh Outdated Show resolved Hide resolved
efx and others added 4 commits February 23, 2021 07:47
- simplify jq pipeline
- preserve globs

Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
```sh
set -x
find . -name '*.sh' ! -type d -exec bash -c 'expand -t 2 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;
```
Courtesy of
[SO](https://stackoverflow.com/questions/11094383/how-can-i-convert-tabs-to-spaces-in-every-file-of-a-directory)
```sh
fd '.*\.sh$' | xargs chmod +x $0
```
@ghost ghost merged commit f1724be into main Feb 23, 2021
@ghost ghost deleted the close-1110 branch February 23, 2021 13:35
This pull request was closed.
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.

[ci] [proposal] lint our bin and _test shell scripts
2 participants