From 2fd1075c4fa3200d951bf7690a0d11fc0223300e Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Mon, 15 May 2023 21:09:09 +0800 Subject: [PATCH] fix: uses nextest in the Release CI (#1582) * fix: uses nextest in the Release CI Signed-off-by: Ruihang Xia * install nextest Signed-off-by: Ruihang Xia * Update Makefile Co-authored-by: zyy17 * update workflow yaml Signed-off-by: Ruihang Xia --------- Signed-off-by: Ruihang Xia Co-authored-by: zyy17 --- .github/workflows/release.yml | 14 ++++++++------ Makefile | 11 +++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b07c98707fee..d501c424ea2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,13 +84,14 @@ jobs: with: toolchain: ${{ env.RUST_TOOLCHAIN }} targets: ${{ matrix.arch }} - + - name: Install latest nextest release + uses: taiki-e/install-action@nextest - name: Output package versions run: protoc --version ; cargo version ; rustc --version ; gcc --version ; g++ --version - # - name: Run tests - # if: env.DISABLE_RUN_TESTS == 'false' - # run: make unit-test integration-test sqlness-test + - name: Run tests + if: env.DISABLE_RUN_TESTS == 'false' + run: make test sqlness-test - name: Run cargo build if: contains(matrix.arch, 'darwin') || contains(matrix.opts, 'pyo3_backend') == false @@ -200,13 +201,14 @@ jobs: with: toolchain: ${{ env.RUST_TOOLCHAIN }} targets: ${{ matrix.arch }} - + - name: Install latest nextest release + uses: taiki-e/install-action@nextest - name: Output package versions run: protoc --version ; cargo version ; rustc --version ; gcc --version ; g++ --version - name: Run tests if: env.DISABLE_RUN_TESTS == 'false' - run: make unit-test integration-test sqlness-test + run: make test sqlness-test - name: Run cargo build if: contains(matrix.arch, 'darwin') || contains(matrix.opts, 'pyo3_backend') == false diff --git a/Makefile b/Makefile index f9ef92a6c964..1e3dd4eb0a64 100644 --- a/Makefile +++ b/Makefile @@ -33,13 +33,12 @@ docker-image: ## Build docker image. ##@ Test -.PHONY: unit-test -unit-test: ## Run unit test. - cargo test --workspace +test: nextest ## Run unit and integration tests. + cargo nextest run -.PHONY: integration-test -integration-test: ## Run integation test. - cargo test integration +.PHONY: nextest ## Install nextest tools. +nextest: + cargo --list | grep nextest || cargo install cargo-nextest --locked .PHONY: sqlness-test sqlness-test: ## Run sqlness test.