Skip to content

[CS2103T-T09-1] TeachStack #9829

[CS2103T-T09-1] TeachStack

[CS2103T-T09-1] TeachStack #9829

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@main
- name: Set up repository
uses: actions/checkout@main
with:
ref: master
- name: Merge to master
run: git checkout --progress --force ${{ github.sha }}
- name: Run repository-wide tests
if: runner.os == 'Linux'
working-directory: ${{ github.workspace }}/.github
run: ./run-checks.sh
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
java-package: jdk+fx
- name: Build and check with Gradle (Ubuntu)
if: matrix.platform == 'ubuntu-latest'
run: xvfb-run ./gradlew check coverage
- name: Build and check with Gradle (macOS)
if: matrix.platform == 'macos-latest'
run: ./gradlew check coverage
- name: Build and check with Gradle (Windows)
if: matrix.platform == 'windows-latest'
run: ./gradlew check coverage
- name: Upload coverage reports to Codecov
if: runner.os == 'Linux'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}