Skip to content

Feature/date time provider #49

Feature/date time provider

Feature/date time provider #49

Workflow file for this run

name: "Build and Test"
on:
workflow_call:
pull_request_target:
types:
- opened
branches:
- 'main'
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: "Set Up JDK"
uses: actions/setup-java@v4
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 -x check
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