From 24d7c78fba0d5f8480078b509954e6098245e81c Mon Sep 17 00:00:00 2001 From: Alva Zhang <140438385+Alva8756@users.noreply.github.com> Date: Mon, 1 Jan 2024 14:06:49 -0800 Subject: [PATCH] rebase test --- .github/workflows/lint-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 8c447de..da3e343 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -18,10 +18,10 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: '1.19' + go-version: '1.21.0' - name: Install cockroach binary - run: curl https://binaries.cockroachdb.com/cockroach-v21.1.7.linux-amd64.tgz | tar -xz && sudo cp -i cockroach-v21.1.7.linux-amd64/cockroach /usr/local/bin/ + run: curl https://binaries.cockroachdb.com/cockroach-v23.1.11.linux-amd64.tgz | tar -xz && sudo cp -i cockroach-v23.1.11.linux-amd64/cockroach /usr/local/bin/ - name: Start test database run: cockroach start-single-node --insecure --background @@ -36,10 +36,10 @@ jobs: args: --timeout=5m - name: Run go tests and generate coverage report - run: SERVERSERVICE_CRDB_URI="host=localhost port=26257 user=root sslmode=disable dbname=serverservice_test" go test -race -coverprofile=coverage.txt -covermode=atomic -tags testtools -p 1 ./... + run: SERVERSERVICE_CRDB_URI="host=localhost port=26257 user=root sslmode=disable dbname=serverservice_test" go test -test.v -race -coverprofile=coverage.txt -covermode=atomic -tags testtools -p 1 ./... - name: Stop test database - run: cockroach quit --insecure --host=localhost:26257 + run: cockroach node drain --insecure --host=localhost:26257 - name: Upload coverage report uses: codecov/codecov-action@v3