-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "code" (shell) linter and format checker (#32)
* Add "code" (shell) linter and format checker This uses: - shellcheck - shfmt behind the scenes * Relax validations * ShellCheck all shell scripts * shfmt all shell scripts * Check .exs format (in scripts) * Update CI names * Act on self-review
- Loading branch information
1 parent
dab2931
commit 14c4eb4
Showing
5 changed files
with
106 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "*" | ||
workflow_dispatch: {} | ||
|
||
name: Checks | ||
|
||
jobs: | ||
checks: | ||
name: Checks | ||
|
||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: shell scripts check | ||
uses: luizm/[email protected] | ||
env: | ||
SHFMT_OPTS: -i 2 -d | ||
|
||
- uses: erlef/[email protected] | ||
with: | ||
otp-version: 27 | ||
elixir-version: 1.17 | ||
|
||
- name: exs format check | ||
run: | | ||
mix format --check-formatted scripts/*.exs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters