feat: Run ShellCheck on shell scripts

Closes #85.
This commit is contained in:
Victor Engmark 2023-01-10 17:02:55 +13:00
parent 4553130780
commit 5a4d706e52

18
.github/workflows/test.yml vendored Normal file
View File

@ -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'