From b310830b5dbd5f881ce579798cff126752fb27ce Mon Sep 17 00:00:00 2001 From: Harsh Upadhyay <49197635+harshau007@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:00:53 +0530 Subject: [PATCH] Improve test-suite.yml for CI failing when disabling tokenization (#4005) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Update] test-suite.yml Added New run command for cargo tree without default features using if-then block * [Updated] test-disabled-tokenization in test-suite.yml * [Updated] test-suite.yml * Update .github/workflows/test-suite.yml --------- Co-authored-by: Clémentine U. - curqui --- .github/workflows/test-suite.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 0361ff9cd..a44a843fe 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -123,7 +123,10 @@ jobs: override: true - name: Run cargo tree without default features and check lindera is not present run: | - cargo tree -f '{p} {f}' -e normal --no-default-features | grep lindera -vqz + if cargo tree -f '{p} {f}' -e normal --no-default-features | grep -vqz lindera; then + echo "lindera has been found in the sources and it shouldn't" + exit 1 + fi - name: Run cargo tree with default features and check lindera is pressent run: | cargo tree -f '{p} {f}' -e normal | grep lindera -qz