diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index bdbdf47761..b9cf55b4d4 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -29,18 +29,14 @@ jobs: - name: Build and check with Gradle run: ./gradlew check - - name: Perform IO redirection test (*NIX) - if: runner.os == 'Linux' + - name: Perform IO redirection test working-directory: ${{ github.workspace }}/text-ui-test - run: ./runtest.sh - - - name: Perform IO redirection test (MacOS) - if: always() && runner.os == 'macOS' - working-directory: ${{ github.workspace }}/text-ui-test - run: ./runtest.sh - - - name: Perform IO redirection test (Windows) - if: always() && runner.os == 'Windows' - working-directory: ${{ github.workspace }}/text-ui-test - shell: cmd - run: runtest.bat \ No newline at end of file + shell: bash + run: | + if [[ "$RUNNER_OS" == "Linux" ]]; then + ./runtest.sh + elif [[ "$RUNNER_OS" == "macOS" ]]; then + ./runtest.sh + elif [[ "$RUNNER_OS" == "Windows" ]]; then + cmd /c runtest.bat + fi \ No newline at end of file