Replacing deprecated factory functions with recommended constructor-like function #390
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI with Gradle - Test and Build | |
# Trigger the workflow pull request, | |
# but only for the main branch | |
on: | |
pull_request: | |
branches: [ main ] | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xmx5g -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ 'macos-latest', 'ubuntu-latest', 'windows-latest' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Test (macos, jvm, js) | |
if: matrix.os == 'macos-latest' | |
run: ./gradlew build --full-stacktrace | |
- name: Test (linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: ./gradlew linuxX64Test --full-stacktrace | |
- name: Test (windows) | |
if: matrix.os == 'windows-latest' | |
run: ./gradlew mingwX64Test --full-stacktrace | |
- name: Upload reports | |
uses: actions/[email protected] | |
with: | |
name: 'reports-${{ matrix.os }}' | |
path: '**/build/reports/**' |