-
Notifications
You must be signed in to change notification settings - Fork 548
42 lines (34 loc) · 1.03 KB
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
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