From a282ed2b4212396147b024961e66a4269c087af7 Mon Sep 17 00:00:00 2001 From: sandroid Date: Tue, 16 Jun 2026 23:12:46 +0200 Subject: [PATCH] ci: use bashunit GitHub action --- .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 7bc75701..f8ded2ac 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 91970327..1d0a7ae1 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