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: |