-
Notifications
You must be signed in to change notification settings - Fork 17
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
CI: run actionlint #740
CI: run actionlint #740
Conversation
e92184b
to
d7ee1fb
Compare
d7ee1fb
to
7c74ffd
Compare
@@ -124,10 +124,6 @@ jobs: | |||
- name: Build Haddock documentation 🔧 | |||
run: ./.github/bin/haddocks.sh ./haddocks true | |||
|
|||
- name: View HTML files | |||
run: | | |||
find "dist-newstyle/build" -name '*.html' | xargs grep html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This had no effect besides outputting a big number of lines to the pipeline's log.
@@ -93,9 +93,9 @@ | |||
({pkgs, ...}: { | |||
packages.cardano-cli.configureFlags = [ "--ghc-option=-Werror" ] ++ gitRevFlag; | |||
packages.cardano-cli.components.tests.cardano-cli-test.build-tools = | |||
with pkgs.buildPackages; [ jq coreutils shellcheck ]; | |||
with pkgs.buildPackages; [ jq coreutils ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need jq
for cli tests? 🤔 I have also doubts about coreutils there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into this next 👍
@@ -0,0 +1 @@ | |||
.github/workflows/check-stylish-haskell.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's wrong with this workflow now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carbolymer> there a number of missing quotes I believe:
.github/workflows/check-stylish-haskell.yml:40:7: shellcheck reported issue in this script: SC2086:info:7:66: Double quote to prevent globbing and word splitting [shellcheck]
|
40 | run: |
| ^~~~
.github/workflows/check-stylish-haskell.yml:52:7: shellcheck reported issue in this script: SC2086:info:6:22: Double quote to prevent globbing and word splitting [shellcheck]
|
52 | run: |
| ^~~~
.github/workflows/check-stylish-haskell.yml:52:7: shellcheck reported issue in this script: SC2086:info:9:26: Double quote to prevent globbing and word splitting [shellcheck]
|
52 | run: |
| ^~~~
.github/workflows/check-stylish-haskell.yml:69:7: shellcheck reported issue in this script: SC2086:info:6:22: Double quote to prevent globbing and word splitting [shellcheck]
|
69 | run: |
| ^~~~
.github/workflows/check-stylish-haskell.yml:69:7: shellcheck reported issue in this script: SC2086:info:9:26: Double quote to prevent globbing and word splitting [shellcheck]
|
69 | run: |
| ^~~~
I didn't fix them in this PR, because in my experience, adding checks and fixing warnings in the same PR tend to make the PR harder to merge.
I can make fix them afterwards 👍
Changelog
Context
actionlint is the defacto checker for GHA workflow files. In my experience, it is quite good and catches a number of mistakes.
How to trust this PR
Checklist