Skip to content

Commit

Permalink
Add BATS shell tests to github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Burger <[email protected]>
  • Loading branch information
mathiasburger committed May 8, 2024
1 parent a08955a commit 32f0a16
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 32f0a16

Please sign in to comment.