Update actions/checkout action to v4.1.4 #299
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-11', 'ubuntu-latest', 'windows-latest' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Test (macos, jvm, js) | |
uses: gradle/[email protected] | |
if: matrix.os == 'macos-11' | |
with: | |
arguments: --full-stacktrace build | |
- name: Test (linux) | |
uses: gradle/[email protected] | |
if: matrix.os == 'ubuntu-latest' | |
with: | |
arguments: --full-stacktrace linuxX64Test | |
- name: Test (windows) | |
uses: gradle/[email protected] | |
if: matrix.os == 'windows-latest' | |
with: | |
arguments: --full-stacktrace mingwX64Test | |
- name: Upload reports | |
uses: actions/[email protected] | |
with: | |
name: 'reports-${{ matrix.os }}' | |
path: '**/build/reports/**' |