From 949a222936119647b417aae4e0e906aa5414c208 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Thu, 27 Jun 2024 16:54:37 +0400 Subject: [PATCH] improve equality test --- .github/workflows/tests.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65b08bc..e52a8dc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,18 +53,15 @@ jobs: [ -d "$PLAYDATE_SDK_PATH" ] || (echo "::error ::Missing output PLAYDATE_SDK_PATH" && exit 1) - name: equality - if: runner.os != 'Windows' || !matrix.root-win-path + if: (runner.os != 'Windows' || !matrix.root-win-path) && (steps.installer.outputs.root != env.PLAYDATE_SDK_PATH) run: | - [ "$PLAYDATE_SDK_PATH" == "${{ steps.installer.outputs.root }}" ] || (echo "::error ::Env not eq output: PLAYDATE_SDK_PATH" && exit 1) - + echo "::error ::Env not eq output: $PLAYDATE_SDK_PATH != ${{ steps.installer.outputs.root }}" + exit 1 - name: inequality - if: runner.os == 'Windows' && matrix.root-win-path + if: (runner.os == 'Windows' && matrix.root-win-path) && (steps.installer.outputs.root == env.PLAYDATE_SDK_PATH) run: | - echo "env: $PLAYDATE_SDK_PATH == ${{ steps.installer.outputs.root }}" - if ${{ steps.installer.outputs.root == env.PLAYDATE_SDK_PATH }}; then - echo "::error ::Env is eq output: PLAYDATE_SDK_PATH" - exit 1 - fi + echo "::error ::Env is eq output: $PLAYDATE_SDK_PATH == ${{ steps.installer.outputs.root }}" + exit 1 - name: $PATH run: |