Skip to content

[CS2103T-F11-4] EZSTATES #99

[CS2103T-F11-4] EZSTATES

[CS2103T-F11-4] EZSTATES #99

Workflow file for this run

name: Java Ui Test
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@main
- name: Set up repository
uses: actions/checkout@main
with:
ref: master
- name: Merge to master
run: git checkout --progress --force ${{ github.sha }}
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
java-package: jdk+fx
- name: Build and check with Gradle
run: ./gradlew check coverage
- name: Run unit tests
run: ./gradlew test
- name: Run UI Unit tests on Windows
if: runner.os == 'Windows'
run: ./gradlew uiTest
- name: Run UI Unit tests on MacOS
if: runner.os == 'MacOS'
run: ./gradlew uiTest