From 5b90fe0b4a6d4f4443d9c9969f5e21f74dd7c957 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Wed, 27 Nov 2024 10:03:53 +0100 Subject: [PATCH] =?UTF-8?q?Don't=20fail=20Code=20checker=20workflow?= =?UTF-8?q?=E2=80=A6=20(#67)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Improve workflow --- .github/workflows/code-checker.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-checker.yml b/.github/workflows/code-checker.yml index f23fa11..8c65557 100644 --- a/.github/workflows/code-checker.yml +++ b/.github/workflows/code-checker.yml @@ -45,10 +45,14 @@ jobs: - run: yarn dedupe --check - run: yarn build - run: yarn code-checker:start & - - run: yarn code-checker:test + - run: | + status=0 + yarn code-checker:test || status=$? + if [ ${status} -ne 0 ]; then + echo "Code Checker failed with exit code ${status}, as expected" + exit 0 + fi + exit ${status} env: SI_USER_EMAIL: ${{ secrets.SI_USER_EMAIL }} - SI_API_KEY: ${{ secrets.SI_API_KEY }} - - name: Expect failure of previous step - if: ${{ failure() }} - run: echo "Code Checker failed as expected" + SI_API_KEY: ${{ secrets.SI_API_KEY }} \ No newline at end of file