From 5a4d706e521a09682510fa2023f50a400856adf8 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 10 Jan 2023 17:02:55 +1300 Subject: [PATCH] feat: Run ShellCheck on shell scripts Closes #85. --- .github/workflows/test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ba736f2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: test +on: + workflow_dispatch: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + lint: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3.2.0 + - name: Install Nix + uses: cachix/install-nix-action@v18 + with: + extra_nix_config: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: ShellCheck + run: nix-shell --packages git shellcheck --pure --run 'shellcheck disk-deactivate/disk-deactivate disko'