Skip to content

Commit

Permalink
Refactor workflow for IO test
Browse files Browse the repository at this point in the history
  • Loading branch information
NereusWB922 committed Feb 19, 2024
1 parent b9b409b commit e3fb8a7
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit e3fb8a7

Please sign in to comment.