build(deps): bump com.diffplug.spotless:spotless-plugin-gradle from 6.25.0 to 7.0.1 #237
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: test | |
"on": | |
push: | |
paths-ignore: | |
- 'LICENSE' | |
- 'README.*' | |
- 'docs/*' | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- 'LICENSE' | |
- 'README.*' | |
- 'docs/*' | |
env: | |
APP_NAME: 'tkite' | |
JAVA_VERSION: '16' | |
JAVAFX_VERSION: '16' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ env.JAVA_VERSION }} | |
java-package: jdk | |
architecture: x64 | |
- name: Install xvfb | |
run: sudo apt install -y xvfb | |
- name: Check code style | |
run: ./gradlew spotlessCheck | |
- name: Test | |
run: xvfb-run ./gradlew test | |
build-artifact: | |
runs-on: ${{ matrix.os }} | |
env: | |
VERSION: ci | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
os_name: windows | |
archive_cmd: 7z a | |
artifact_ext: .zip | |
entrypoint_script_ext: .bat | |
- os: macOS-latest | |
os_name: osx | |
archive_cmd: tar czf | |
artifact_ext: .tar.gz | |
entrypoint_script_ext: '' | |
- os: ubuntu-latest | |
os_name: linux | |
archive_cmd: tar czf | |
artifact_ext: .tar.gz | |
entrypoint_script_ext: '' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ env.JAVA_VERSION }} | |
java-package: jdk | |
architecture: x64 | |
- name: Build | |
run: > | |
ORG_GRADLE_PROJECT_CI_VERSION="${VERSION}" | |
ORG_GRADLE_PROJECT_CI_COMMIT_HASH="$(git rev-parse HEAD)" | |
./gradlew build -x test | |
- name: Create artifact | |
run: > | |
OS_NAME="${{ matrix.os_name }}" | |
ARCHIVE_CMD="${{ matrix.archive_cmd }}" | |
ARTIFACT_EXT="${{ matrix.artifact_ext }}" | |
ENTRYPOINT_SCRIPT_EXT="${{ matrix.entrypoint_script_ext }}" | |
./script/create_artifact.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: artifact | |
path: | | |
./dist/* | |
if: github.ref != 'refs/heads/master' |