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 shellcheck to CI #1423

Merged
merged 3 commits into from
Feb 10, 2022
Merged

add shellcheck to CI #1423

merged 3 commits into from
Feb 10, 2022

Conversation

LesnyRumcajs
Copy link
Member

Summary of changes
Changes introduced in this pull request:

  • adds ShellCheck to the CI to lint project's shell scripts.

@LesnyRumcajs LesnyRumcajs marked this pull request as draft February 10, 2022 14:14
@LesnyRumcajs LesnyRumcajs marked this pull request as ready for review February 10, 2022 15:19
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run shellcheck
Copy link
Contributor

Choose a reason for hiding this comment

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

What about adding these two lines to the lint job to reduce complexity in the workflows?

https://github.com/ChainSafe/forest/blob/main/.github/workflows/rust.yml#L100

Copy link
Member Author

Choose a reason for hiding this comment

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

I was considering this, then I looked at the workflow name and I abandoned this idea - all the jobs inside seem to be strictly related to Rust. On the other hand, if we'd rename it to e.g. Forest CI or some better name, then it would fit nicely the lint job. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, however, renaming it means we need to mess with all the PRs again. Maybe just keep it in shell.yml for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good to me!

@@ -76,4 +76,4 @@ for endpoint in ${RPC_ENDPOINTS[@]}; do
done

# Kill forest daemon
ps -ef | grep forest | grep -v grep | awk '{print $2}' | xargs kill
pgrep forest | xargs kill
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏼 😆

@@ -0,0 +1,18 @@
name: ShellCheck
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: ShellCheck
name: Shell

Let's name it also Shell so in case we need to add more later.

@q9f q9f merged commit e2a7a3e into main Feb 10, 2022
@q9f q9f deleted the ci-add-shellcheck branch February 10, 2022 17:04
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.

None yet

2 participants