ci: use bashunit GitHub action (#539)

This commit is contained in:
sandroid 2026-06-17 17:50:50 +02:00 committed by GitHub
parent 3dbcacd3f2
commit d296099c0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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