Skip to content

Commit a03a1a1

Browse files
committed
ci: add test workflow with bash linting and mise test job
1 parent efbb906 commit a03a1a1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Check bash syntax
16+
run: |
17+
for script in bin/*; do
18+
[[ -d "$script" ]] && continue
19+
echo "Checking $script..."
20+
bash -n "$script"
21+
done
22+
echo "All scripts passed syntax check."
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Setup mise
30+
uses: jdx/mise-action@v2
31+
32+
- name: Run tests
33+
run: mise run test

0 commit comments

Comments
 (0)