Skip to content

Merge pull request #15 from Stewori/patch-1 #34

Merge pull request #15 from Stewori/patch-1

Merge pull request #15 from Stewori/patch-1 #34

Workflow file for this run

name: Check
on:
push:
branches:
- main
pull_request:
merge_group:
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
show-progress: 'false'
- name: Setup JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: corretto
check-latest: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
# `build` runs tests headless (no display needed) and the doclint-gated javadoc jar
- name: Build
run: ./gradlew build
# Tests of the RichTextArea renderer need the JavaFX toolkit
- name: GUI tests
run: xvfb-run --auto-servernum ./gradlew guiTest
- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v7
with:
name: test-reports
path: |
build/reports/tests/test/
build/test-results/test/
# Lints CHANGELOG.md against the Keep a Changelog format
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
show-progress: 'false'
- name: Lint CHANGELOG.md
uses: jbangdev/jbang-action@v0.141.0
with:
script: com.github.nbbrd.heylogs:heylogs-cli:0.19.1:bin
scriptargs: "check --rule dot-space-link-style:ERROR --format github-actions CHANGELOG.md"