Skip to content

Update Github action workflow #53

Update Github action workflow

Update Github action workflow #53

Workflow file for this run

name: Java CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
java-package: jdk+fx
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build and check with Gradle
run: ./gradlew check
- name: Perform IO redirection test
working-directory: ${{ github.workspace }}/text-ui-test
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