Skip to content

Commit 862eaf0

Browse files
committed
refactor(ci): ♻️ update test paths and scripts
* Changed sparse checkout path from `test/` to `tests/`. * Updated test command to reference the new `tests/cli-tips.bats` location. * Added new `tests` target in Makefile and Taskfile for running tests. * Replaced `cli-tips.sh` calls with `debug.sh` in debug tasks.
1 parent a69f2aa commit 862eaf0

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2020
with:
2121
sparse-checkout: |
22-
test/
22+
tests/
2323
cli-tips.sh
2424
2525
- name: 🧪 Run Bats Tests
26-
run: npx bats test/cli-tips.bats
26+
run: npx bats tests/cli-tips.bats

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
.PHONY: debug
1+
.PHONY: debug tests
22

33
debug:
4-
@TIPS_FOLDER=translations ./cli-tips.sh $(ARGS)
4+
@./scripts/debug.sh $(ARGS)
5+
6+
tests:
7+
@./script/test.sh

Taskfile.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ version: 3
33
tasks:
44
debug:
55
cmds:
6-
- TIPS_FOLDER=translations ./cli-tips.sh {{.CLI_ARGS}}
6+
- ./scripts/debug.sh {{.CLI_ARGS}}
77
silent: true
8+
9+
tests:
10+
cmds:
11+
- ./scripts/test.sh

scripts/debug.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
TIPS_FOLDER=translations ./cli-tips.sh "$@"

scripts/test.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
bunx bats tests/cli-tips.bats
File renamed without changes.

0 commit comments

Comments
 (0)