Skip to content

Commit 797d8de

Browse files
committed
ci: add GitHub Actions workflow for bats tests
1 parent 52ff567 commit 797d8de

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
8+
jobs:
9+
bats:
10+
name: Shell tests (bats)
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install bats-core
17+
run: |
18+
sudo apt-get update -qq
19+
sudo apt-get install -y bats
20+
21+
- name: Run install.sh tests
22+
run: bats tests/install.bats
23+
24+
- name: Run run.sh tests
25+
run: bats tests/run.bats

0 commit comments

Comments
 (0)