Skip to content

Commit

Permalink
improve equality test
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Jun 27, 2024
1 parent 9733b79 commit 949a222
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 949a222

Please sign in to comment.