mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +00:00
fix: uses nextest in the Release CI (#1582)
* fix: uses nextest in the Release CI Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * install nextest Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * Update Makefile Co-authored-by: zyy17 <zyylsxm@gmail.com> * update workflow yaml Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com> Co-authored-by: zyy17 <zyylsxm@gmail.com>
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -84,13 +84,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||||
targets: ${{ matrix.arch }}
|
targets: ${{ matrix.arch }}
|
||||||
|
- name: Install latest nextest release
|
||||||
|
uses: taiki-e/install-action@nextest
|
||||||
- name: Output package versions
|
- name: Output package versions
|
||||||
run: protoc --version ; cargo version ; rustc --version ; gcc --version ; g++ --version
|
run: protoc --version ; cargo version ; rustc --version ; gcc --version ; g++ --version
|
||||||
|
|
||||||
# - name: Run tests
|
- name: Run tests
|
||||||
# if: env.DISABLE_RUN_TESTS == 'false'
|
if: env.DISABLE_RUN_TESTS == 'false'
|
||||||
# run: make unit-test integration-test sqlness-test
|
run: make test sqlness-test
|
||||||
|
|
||||||
- name: Run cargo build
|
- name: Run cargo build
|
||||||
if: contains(matrix.arch, 'darwin') || contains(matrix.opts, 'pyo3_backend') == false
|
if: contains(matrix.arch, 'darwin') || contains(matrix.opts, 'pyo3_backend') == false
|
||||||
@@ -200,13 +201,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||||
targets: ${{ matrix.arch }}
|
targets: ${{ matrix.arch }}
|
||||||
|
- name: Install latest nextest release
|
||||||
|
uses: taiki-e/install-action@nextest
|
||||||
- name: Output package versions
|
- name: Output package versions
|
||||||
run: protoc --version ; cargo version ; rustc --version ; gcc --version ; g++ --version
|
run: protoc --version ; cargo version ; rustc --version ; gcc --version ; g++ --version
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: env.DISABLE_RUN_TESTS == 'false'
|
if: env.DISABLE_RUN_TESTS == 'false'
|
||||||
run: make unit-test integration-test sqlness-test
|
run: make test sqlness-test
|
||||||
|
|
||||||
- name: Run cargo build
|
- name: Run cargo build
|
||||||
if: contains(matrix.arch, 'darwin') || contains(matrix.opts, 'pyo3_backend') == false
|
if: contains(matrix.arch, 'darwin') || contains(matrix.opts, 'pyo3_backend') == false
|
||||||
|
|||||||
11
Makefile
11
Makefile
@@ -33,13 +33,12 @@ docker-image: ## Build docker image.
|
|||||||
|
|
||||||
##@ Test
|
##@ Test
|
||||||
|
|
||||||
.PHONY: unit-test
|
test: nextest ## Run unit and integration tests.
|
||||||
unit-test: ## Run unit test.
|
cargo nextest run
|
||||||
cargo test --workspace
|
|
||||||
|
|
||||||
.PHONY: integration-test
|
.PHONY: nextest ## Install nextest tools.
|
||||||
integration-test: ## Run integation test.
|
nextest:
|
||||||
cargo test integration
|
cargo --list | grep nextest || cargo install cargo-nextest --locked
|
||||||
|
|
||||||
.PHONY: sqlness-test
|
.PHONY: sqlness-test
|
||||||
sqlness-test: ## Run sqlness test.
|
sqlness-test: ## Run sqlness test.
|
||||||
|
|||||||
Reference in New Issue
Block a user