Skip to content

Commit 9a27a2d

Browse files
authored
build: fix justfile test vs tests targets (#14)
1 parent 33f1a6b commit 9a27a2d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
just sysinfo
3535
- name: Run Go Test
3636
run: |
37-
just init tidy lint test
37+
just init tidy lint tests

Justfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ tidy:
1515

1616
# run tests across source tree
1717
[group('build')]
18-
test:
18+
tests:
1919
go test -v -race -count=1 ./...
2020

21+
# run specific unit test
22+
[group('build')]
23+
[no-cd]
24+
test unit:
25+
go test -v -count=1 -race -run {{unit}} 2>/dev/null
26+
2127
# ensure copywrite headers present on source files
2228
[group('lint')]
2329
copywrite:

0 commit comments

Comments
 (0)