Skip to content

Commit d46d282

Browse files
0x46616c6bclaude
andcommitted
fix: use mise in CI workflow for tool installation
Replace manual npm/git-clone installation of bats and shellcheck with jdx/mise-action, consistent with the local mise.toml setup. Co-Authored-By: Claude <claude@anthropic.com>
1 parent 153e9ac commit d46d282

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
shellcheck:
13+
lint:
1414
name: Shellcheck
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

20-
- name: Run shellcheck on all scripts
21-
run: find scripts/ -name '*.sh' -exec shellcheck --severity=warning {} +
20+
- name: Install mise
21+
uses: jdx/mise-action@v2
22+
23+
- name: Run shellcheck
24+
run: mise run lint
2225

2326
test:
2427
name: Bash Tests
@@ -27,14 +30,11 @@ jobs:
2730
- name: Checkout repository
2831
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2932

30-
- name: Install bats and helpers
31-
run: |
32-
sudo npm install -g bats
33-
git clone --depth 1 https://github.com/bats-core/bats-support.git tests/test_helper/bats-support
34-
git clone --depth 1 https://github.com/bats-core/bats-assert.git tests/test_helper/bats-assert
33+
- name: Install mise
34+
uses: jdx/mise-action@v2
3535

3636
- name: Run tests
37-
run: bats tests/*.bats
37+
run: mise run test
3838

3939
validate-action:
4040
name: Validate Action Structure

0 commit comments

Comments
 (0)