Skip to content

Bump com.diffplug.spotless from 6.23.3 to 6.24.0 #72

Bump com.diffplug.spotless from 6.23.3 to 6.24.0

Bump com.diffplug.spotless from 6.23.3 to 6.24.0 #72

Workflow file for this run

#
# Copyright 2019-2023 The Z3-TurnKey Authors
# SPDX-License-Identifier: ISC
#
# Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
# granted, provided that the above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
name: License Check and Multi-Platform Test
on: [ push, pull_request, workflow_dispatch ]
env:
JDK_VERSION: 17
jobs:
safety-check:
name: Check for modified Gradle
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate Gradle artifacts
uses: gradle/wrapper-validation-action@v1
spotless:
name: Run Spotless
needs: safety-check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ env.JDK_VERSION }}
- name: Run Spotless checks
id: spotlessCheck
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessCheck
test:
name: JUnit Test on ${{ matrix.os }}
needs: safety-check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
fail-fast: false # Ensure we get all failures on all affected platforms
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ env.JDK_VERSION }}
- name: Identify install_name_tool name on Ubuntu
if: ${{ startsWith(matrix.os, 'ubuntu') }}
shell: bash
run: |
cd /usr/bin
tools=( llvm-install-name-tool-* )
echo "ORG_GRADLE_PROJECT_install_name_tool=${tools[-1]}" >> "${GITHUB_ENV}"
- name: Disable install_name_tool on Windows
if: ${{ startsWith(matrix.os, 'windows') }}
shell: bash
run: echo "ORG_GRADLE_PROJECT_install_name_tool=true" >> "${GITHUB_ENV}"
- name: Run tests
uses: gradle/gradle-build-action@v2
with:
arguments: test