From 23b03b77432ad80973f1aade8a2e3bf11cdda3f0 Mon Sep 17 00:00:00 2001 From: Srinivas Muthu Date: Mon, 9 Dec 2024 11:50:53 -0500 Subject: [PATCH] Attempting to run shellcheck in CI --- .github/workflows/ci.yml | 1 + modules/flake/linters.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd5e40e..b8e1c34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: matrix: linter: - golangci-lint + - shellcheck steps: - uses: actions/checkout@v4 # - name: Setup Nix diff --git a/modules/flake/linters.nix b/modules/flake/linters.nix index 31f787c..149bb26 100644 --- a/modules/flake/linters.nix +++ b/modules/flake/linters.nix @@ -6,6 +6,9 @@ golangci-lint = pkgs.writeScriptBin "golangci-lint" '' ${pkgs.golangci-lint}/bin/golangci-lint run -v ''; + shellcheck = pkgs.writeScriptBin "shellcheck" '' + ${pkgs.shellcheck}/bin/shellcheck -x $(find . -name "*.sh" -type f) + ''; }; apps =