Skip to content

Commit 47c3961

Browse files
committed
chore: scaffold project with CI workflow
0 parents  commit 47c3961

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
shellcheck:
13+
name: ShellCheck
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Run ShellCheck
18+
uses: ludeeus/action-shellcheck@2.0.0
19+
with:
20+
scandir: scripts/
21+
22+
bats:
23+
name: Bats tests
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Install bats
28+
run: |
29+
sudo apt-get update && sudo apt-get install -y bats
30+
- name: Run tests
31+
run: bats tests/*.bats

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# bats
2+
test_helper/
3+
tests/tmp/
4+
5+
# OS
6+
.DS_Store

0 commit comments

Comments
 (0)