From f951f7f4c202b5976f273df6f7fb624c681b5c32 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Tue, 26 May 2026 19:18:05 +0200 Subject: [PATCH 1/3] Upgrade GitHub Actions --- .github/workflows/check-shell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-shell.yml b/.github/workflows/check-shell.yml index 3f6432a..9447fbf 100644 --- a/.github/workflows/check-shell.yml +++ b/.github/workflows/check-shell.yml @@ -7,6 +7,6 @@ jobs: - name: Check out repository uses: actions/checkout@v6 - name: Lint shell scripts (shellcheck) - uses: ludeeus/action-shellcheck@master + uses: ludeeus/action-shellcheck@v2 with: ignore: Vagrantfile From ff7b5c3da8a2dc7fd1969ea297a9b975362ce658 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Tue, 26 May 2026 19:19:32 +0200 Subject: [PATCH 2/3] Revert actions-shelcheck version pinning --- .github/workflows/check-shell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-shell.yml b/.github/workflows/check-shell.yml index 9447fbf..3f6432a 100644 --- a/.github/workflows/check-shell.yml +++ b/.github/workflows/check-shell.yml @@ -7,6 +7,6 @@ jobs: - name: Check out repository uses: actions/checkout@v6 - name: Lint shell scripts (shellcheck) - uses: ludeeus/action-shellcheck@v2 + uses: ludeeus/action-shellcheck@master with: ignore: Vagrantfile From c7fd1515738129cadbfe62ef922a24c09a98937d Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Tue, 26 May 2026 19:31:38 +0200 Subject: [PATCH 3/3] Add a pre-commit hook and CI workflow --- .github/workflows/check-pre-commit.yaml | 16 ++++++++++++++++ .github/workflows/check-shell.yml | 12 ------------ .pre-commit-config.yaml | 6 ++++++ 3 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/check-pre-commit.yaml delete mode 100644 .github/workflows/check-shell.yml create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/check-pre-commit.yaml b/.github/workflows/check-pre-commit.yaml new file mode 100644 index 0000000..bdd9dd1 --- /dev/null +++ b/.github/workflows/check-pre-commit.yaml @@ -0,0 +1,16 @@ +name: Check pre-commit +on: [push, pull_request] +jobs: + check_style: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v6 + - name: Setup python + uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: Install pre-commit + run: pip install pre-commit + - name: Run checks + run: pre-commit run -a \ No newline at end of file diff --git a/.github/workflows/check-shell.yml b/.github/workflows/check-shell.yml deleted file mode 100644 index 3f6432a..0000000 --- a/.github/workflows/check-shell.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Lint scripts -on: [push, pull_request] -jobs: - check_shell: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v6 - - name: Lint shell scripts (shellcheck) - uses: ludeeus/action-shellcheck@master - with: - ignore: Vagrantfile diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..eee7ae0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: +- repo: https://github.com/koalaman/shellcheck-precommit + rev: v0.11.0 + hooks: + - id: shellcheck + args: [ --external-sources, --exclude=SC1091 ] \ No newline at end of file