From 8acb454565ff6bb0e83e7314917816e89888e001 Mon Sep 17 00:00:00 2001 From: Simon Baird Date: Tue, 5 Nov 2024 17:43:51 -0500 Subject: [PATCH] Add CI check to ensure scripts are autoformatted Prevent merging a PR if the bash hasn't been consistently formatted using `make format`. --- .github/workflows/checks.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a66b5bc..e369a93 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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