Skip to content

Commit eb66786

Browse files
committed
test: add internal unit test to "testing" github workflow
1 parent e5ab79c commit eb66786

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/testing.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
uses: golangci/golangci-lint-action@v6
2727
with:
2828
version: latest
29-
- name: Tests
29+
- name: Unit Tests
30+
run: make test-unit-codecov
31+
- name: Integration Tests
3032
env:
3133
SQLITE_CONNECTION_STRING: ${{ vars.SQLITE_CONNECTION_STRING }}
3234
SQLITE_USER: ${{ secrets.SQLITE_USER }}
@@ -40,4 +42,4 @@ jobs:
4042
uses: codecov/codecov-action@v4.0.1
4143
with:
4244
token: ${{ secrets.CODECOV_TOKEN }}
43-
files: ./test/coverage.out
45+
files: ./coverage-unit.out,./test/coverage.out

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ setup-ide:
77
cd test; go mod tidy
88
cd cli; go mod tidy
99

10-
# Test SDK
10+
# Unit tests (root package)
11+
test-unit:
12+
go test -v .
13+
14+
test-unit-codecov:
15+
go test -v -race -coverprofile=coverage-unit.out -covermode=atomic .
16+
17+
# Integration tests (test/ directory)
1118
test:
1219
cd test; go mod tidy && go test -v .
1320

0 commit comments

Comments
 (0)