Skip to content

Commit

Permalink
Add CI check to ensure scripts are autoformatted
Browse files Browse the repository at this point in the history
Prevent merging a PR if the bash hasn't been consistently formatted
using `make format`.
  • Loading branch information
simonbaird committed Nov 5, 2024
1 parent 521adb9 commit 8acb454
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,17 @@ jobs:
- name: Confirm file freshness
run: |
make ensure-fresh
script-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Install shfmt
run: |
make install-shfmt
- name: Confirm bash formatting
run: |
make ensure-formatting

0 comments on commit 8acb454

Please sign in to comment.