Makefile: rename run-scylla to start-scylla (#311)

This commit is contained in:
Dmitry Kropachev
2025-04-24 17:38:40 -04:00
committed by GitHub
parent 85ac2915b3
commit c12236d8f3
3 changed files with 4 additions and 7 deletions

View File

@@ -42,8 +42,5 @@ jobs:
- name: Lint
run: make check
- name: Run Scylla Container
run: make run-scylla
- name: Test
run: make test

View File

@@ -37,7 +37,7 @@ fix:
GOTEST := go test -cpu $(GOTEST_CPU) -count=1 -cover -race -tags all
.PHONY: test
test:
test: start-scylla
echo "==> Running tests..."
echo "==> Running tests... in ."
@$(GOTEST) .
@@ -62,8 +62,8 @@ bench:
run-examples:
@go test -tags all -v -run=Example ./...
.PHONY: run-scylla
run-scylla:
.PHONY: start-scylla
start-scylla:
@echo "==> Running test instance of Scylla $(SCYLLA_IMAGE)"
@docker pull $(SCYLLA_IMAGE)
@docker run --name gocqlx-scylla -p 9042:9042 --cpuset-cpus=$(SCYLLA_CPU) --memory 1G --rm -d $(SCYLLA_IMAGE)

View File

@@ -18,7 +18,7 @@ import (
)
// Running examples locally:
// make run-scylla
// make start-scylla
// make run-examples
func TestExample(t *testing.T) {
const ks = "migrate_example"