Skip to content

Change LICENSE

Change LICENSE #46

Workflow file for this run

name: "Build and Test"
on:
pull_request_target:
branches: [main]
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: "Set Up JDK"
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
cache: gradle
- name: "Grant execute permission for gradlew"
if: ${{ matrix.os == 'ubuntu-latest' }}
run: chmod +x gradlew
- name: "Build with Gradle"
run: ./gradlew build
shell: bash
- name: "Tests"
if: ${{ matrix.os == 'ubuntu-latest' }}
run: ./gradlew cleanJvmTest jvmTest --tests "com.ucasoft.kcron.*"
- name: "Tests"
if: ${{ matrix.os == 'windows-latest' }}
run: ./gradlew cleanMingwX64Test mingwX64Tes --tests "com.ucasoft.kcron.*"
- name: "Tests Report"
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: jUnit Tests
path: '**/build/test-results/*Test/TEST-*.xml'
reporter: java-junit