Skip to content

Commit

Permalink
CI: add inequality test, fix job name
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Jun 27, 2024
1 parent b759d58 commit 048a94b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ on:

jobs:
tests:
name: ${{ matrix.version }} on ${{ matrix.os }} ${{ matrix.cache && '+cache' || '' }} ${{ matrix.gcc && '+gcc' || '' }}
name: >-
${{ matrix.version }} on
${{ (contains(matrix.os, 'macos') && 'mac') || (contains(matrix.os, 'ubuntu') && 'linux') || (contains(matrix.os, 'windows') && 'win') || matrix.os }}
${{ matrix.cache && '+cache' || '' }} ${{ matrix.gcc && '+gcc' || '' }} ${{ matrix.root-win-path && '+fix-path' || '' }}
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down Expand Up @@ -50,9 +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 == 'false'
run: |
[ "$PLAYDATE_SDK_PATH" == "${{ steps.installer.outputs.root }}" ] || (echo "::error ::Env not eq output: PLAYDATE_SDK_PATH" && exit 1)
- name: inequality
if: runner.os == 'Windows' && matrix.root-win-path != 'false'
run: |
[ "$PLAYDATE_SDK_PATH" == "${{ steps.installer.outputs.root }}" ] && (echo "::error ::Env not eq output: PLAYDATE_SDK_PATH" && exit 1)
- name: $PATH
run: |
which pdc || (echo "::error ::Missing pdc from PATH." && exit 1)
Expand Down

0 comments on commit 048a94b

Please sign in to comment.