From 32f0a16362d6c2073259f206d50ff913abde9f28 Mon Sep 17 00:00:00 2001 From: Mathias Burger Date: Wed, 8 May 2024 11:27:46 +0200 Subject: [PATCH] Add BATS shell tests to github workflows Signed-off-by: Mathias Burger --- .github/workflows/test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 063d8cb..e9a3f1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,3 +14,18 @@ jobs: - uses: actions/checkout@v3 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master + bats-tests: + name: BATS Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install BATS and dependencies from Ubuntu repositories + run: sudo apt-get update && sudo apt-get install -y bats +# - name: Upgrade BATS from github +# run: | +# git clone https://github.com/bats-core/bats-core.git +# git checkout git checkout v1.9.0 +# cd bats-core +# sudo ./install.sh /usr/local + - name: Run BATS Tests + run: bats --formatter pretty test