From d296099c0af7d1081e6866a7a88f64aead5ab53e Mon Sep 17 00:00:00 2001 From: sandroid <88739791+sandr01d@users.noreply.github.com> Date: Wed, 17 Jun 2026 17:50:50 +0200 Subject: [PATCH] ci: use bashunit GitHub action (#539) --- .github/workflows/ci.yaml | 7 +++++-- CONTRIBUTING.md | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7bc7570..f8ded2a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,6 +27,10 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 + - uses: TypedDevs/bashunit@v0 + with: + version: '0.40.0' + verify-checksum: 'true' # Runs a single command using the runners shell - name: Install prerequisites @@ -40,7 +44,6 @@ jobs: sudo apt -y update sudo apt -y install --no-install-recommends zsh fish shellcheck fi - curl -s https://bashunit.typeddevs.com/install.sh | bash -s 0.31.0 - name: Show version run: | @@ -54,7 +57,7 @@ jobs: run: shellcheck forgit.plugin.sh bin/git-forgit - name: Unit tests - run: lib/bashunit . + run: bashunit tests - name: Test bash run: bash forgit.plugin.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9197032..1d0a7ae 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,7 +58,7 @@ To run the same checks as CI, make sure these tools are available locally: If `lib/bashunit` is not available yet, install it once with: ```sh -curl -s https://bashunit.typeddevs.com/install.sh | bash -s 0.31.0 +curl --silent --fail --location https://bashunit.typeddevs.com/install.sh | bash -s 0.40.0 ``` Local Validation