From f383236921dc0ece89e46fef92c775197369acf5 Mon Sep 17 00:00:00 2001 From: Elsie Date: Sat, 18 Nov 2023 11:21:30 -0600 Subject: [PATCH 1/3] ci: enforce shellcheck and shfmt --- .github/workflows/sh-checker.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/sh-checker.yml diff --git a/.github/workflows/sh-checker.yml b/.github/workflows/sh-checker.yml new file mode 100644 index 0000000000..8244cbb4cb --- /dev/null +++ b/.github/workflows/sh-checker.yml @@ -0,0 +1,17 @@ +name: SH Checker +on: + - pull_request +jobs: + sh-checker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run the sh-checker + uses: luizm/action-sh-checker@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SHELLCHECK_OPTS: -o all -e 2148 -e SC2033 -e SC2032 -e SC2034 -e SC2154 -e SC2312 -e SC2164 + SHFMT_OPTS: -s -i 2 -bn -ci -sr -s + with: + sh_checker_comment: true + sh_checker_exclude: "packages/emacs/ packages/emacs-git/" From 01c04e07b20a27759f08520d70bf8b13d30057df Mon Sep 17 00:00:00 2001 From: Elsie Date: Sat, 18 Nov 2023 11:24:23 -0600 Subject: [PATCH 2/3] ci: testing --- packages/dust-bin/dust-bin.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dust-bin/dust-bin.pacscript b/packages/dust-bin/dust-bin.pacscript index 9ca2dafd6f..a208d74809 100644 --- a/packages/dust-bin/dust-bin.pacscript +++ b/packages/dust-bin/dust-bin.pacscript @@ -29,7 +29,7 @@ package() { } post_remove() { - # Remove empty directories + # Remove empty directories sudo rm -rf "/usr/share/licenses/${pkgname}" sudo rm -rf "/usr/share/doc/${pkgname}" } From 3721b4394948245097d2361e14869e114dbfe90b Mon Sep 17 00:00:00 2001 From: Elsie Date: Sat, 18 Nov 2023 11:25:22 -0600 Subject: [PATCH 3/3] ci: full path --- .github/workflows/sh-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sh-checker.yml b/.github/workflows/sh-checker.yml index 8244cbb4cb..4774377a76 100644 --- a/.github/workflows/sh-checker.yml +++ b/.github/workflows/sh-checker.yml @@ -14,4 +14,4 @@ jobs: SHFMT_OPTS: -s -i 2 -bn -ci -sr -s with: sh_checker_comment: true - sh_checker_exclude: "packages/emacs/ packages/emacs-git/" + sh_checker_exclude: "packages/emacs/emacs.pacscript packages/emacs-git/emacs-git.pacscript"