Skip to content

Commit f130468

Browse files
committed
github-ci: add test for msgpack.v5
Closes #124
1 parent a83e5db commit f130468

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/testing.yml

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
- name: Run tests
5858
run: make test
5959

60+
- name: Run tests with msgpack.v5
61+
run: make test TAGS="go_tarantool_msgpack_v5"
62+
6063
- name: Run tests, collect code coverage data and send to Coveralls
6164
if: ${{ matrix.coveralls }}
6265
env:

Makefile

+10-9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ BENCH_REFERENCE_REPO := ${BENCH_PATH}/go-tarantool
1313
BENCH_OPTIONS := -bench=. -run=^Benchmark -benchmem -benchtime=${DURATION} -count=${COUNT}
1414
GO_TARANTOOL_URL := https://github.com/tarantool/go-tarantool
1515
GO_TARANTOOL_DIR := ${PROJECT_DIR}/${BENCH_PATH}/go-tarantool
16+
TAGS :=
1617

1718
.PHONY: clean
1819
clean:
@@ -25,44 +26,44 @@ deps: clean
2526

2627
.PHONY: test
2728
test:
28-
go test ./... -v -p 1
29+
go test -tags "$(TAGS)" ./... -v -p 1
2930

3031
.PHONY: test-connection-pool
3132
test-connection-pool:
3233
@echo "Running tests in connection_pool package"
3334
go clean -testcache
34-
go test ./connection_pool/ -v -p 1
35+
go test -tags "$(TAGS)" ./connection_pool/ -v -p 1
3536

3637
.PHONY: test-multi
3738
test-multi:
3839
@echo "Running tests in multiconnection package"
3940
go clean -testcache
40-
go test ./multi/ -v -p 1
41+
go test -tags "$(TAGS)" ./multi/ -v -p 1
4142

4243
.PHONY: test-queue
4344
test-queue:
4445
@echo "Running tests in queue package"
4546
cd ./queue/ && tarantool -e "require('queue')"
4647
go clean -testcache
47-
go test ./queue/ -v -p 1
48+
go test -tags "$(TAGS)" ./queue/ -v -p 1
4849

4950
.PHONY: test-uuid
5051
test-uuid:
5152
@echo "Running tests in UUID package"
5253
go clean -testcache
53-
go test ./uuid/ -v -p 1
54+
go test -tags "$(TAGS)" ./uuid/ -v -p 1
5455

5556
.PHONY: test-main
5657
test-main:
5758
@echo "Running tests in main package"
5859
go clean -testcache
59-
go test . -v -p 1
60+
go test -tags "$(TAGS)" . -v -p 1
6061

6162
.PHONY: coverage
6263
coverage:
6364
go clean -testcache
6465
go get golang.org/x/tools/cmd/cover
65-
go test ./... -v -p 1 -covermode=atomic -coverprofile=$(COVERAGE_FILE) -coverpkg=./...
66+
go test -tags "$(TAGS)" ./... -v -p 1 -covermode=atomic -coverprofile=$(COVERAGE_FILE) -coverpkg=./...
6667
go tool cover -func=$(COVERAGE_FILE)
6768

6869
.PHONY: coveralls
@@ -82,7 +83,7 @@ ${BENCH_PATH} bench-deps:
8283
.PHONY: bench
8384
${BENCH_FILE} bench: ${BENCH_PATH}
8485
@echo "Running benchmark tests from the current branch"
85-
go test ${TEST_PATH} ${BENCH_OPTIONS} 2>&1 \
86+
go test -tags "$(TAGS)" ${TEST_PATH} ${BENCH_OPTIONS} 2>&1 \
8687
| tee ${BENCH_FILE}
8788
benchstat ${BENCH_FILE}
8889

@@ -92,7 +93,7 @@ ${GO_TARANTOOL_DIR}:
9293

9394
${REFERENCE_FILE}: ${GO_TARANTOOL_DIR}
9495
@echo "Running benchmark tests from master for using results in bench-diff target"
95-
cd ${GO_TARANTOOL_DIR} && git pull && go test ./... ${BENCH_OPTIONS} 2>&1 \
96+
cd ${GO_TARANTOOL_DIR} && git pull && go test -tags $(TAGS) ./... ${BENCH_OPTIONS} 2>&1 \
9697
| tee ${REFERENCE_FILE}
9798

9899
bench-diff: ${BENCH_FILES}

0 commit comments

Comments
 (0)