Skip to content

Update gradle/actions action to v4 #344

Update gradle/actions action to v4

Update gradle/actions action to v4 #344

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
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/**'