1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-16 18:25:11 +00:00

chore: remove windows test and generate javadoc with frames

This commit is contained in:
Arnaud Roques 2023-11-14 21:31:05 +01:00
parent 61b1e4f0f0
commit 4f0f8d7821
2 changed files with 3 additions and 39 deletions

View File

@ -116,43 +116,6 @@ jobs:
name: ${{ github.run_number }}-${{ matrix.os }}-java-${{ matrix.java_version }}-test-reports name: ${{ github.run_number }}-${{ matrix.os }}-java-${{ matrix.java_version }}-test-reports
path: build/reports/tests/ path: build/reports/tests/
test_windows:
needs: workflow_config
strategy:
fail-fast: false
matrix:
java_version: [ 8 ]
os: [ windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
if: needs.workflow_config.outputs.do_test_windows == 'true'
uses: actions/checkout@v4
- name: Set up java
if: needs.workflow_config.outputs.do_test_windows == 'true'
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java_version }}
distribution: temurin
cache: gradle
# Compile / Test / Package are separate steps so the reason for any failure is more obvious in GitHub UI
- name: Compile
if: needs.workflow_config.outputs.do_test_windows == 'true'
run: gradle -q compileJava --no-daemon
- name: Test
if: needs.workflow_config.outputs.do_test_windows == 'true'
run: gradle test --no-daemon -i
- name: Upload test reports
uses: actions/upload-artifact@v3
if: needs.workflow_config.outputs.do_test_windows == 'true'
with:
# Using github.run_number here to reduce confusion when downloading & comparing from several builds
name: ${{ github.run_number }}-${{ matrix.os }}-java-${{ matrix.java_version }}-test-reports
path: build/reports/tests/
build_artifacts: build_artifacts:
needs: [ workflow_config ] needs: [ workflow_config ]
@ -218,7 +181,7 @@ jobs:
enableCrossOsArchive: true enableCrossOsArchive: true
deploy_javadoc: deploy_javadoc:
needs: [ build_artifacts ] needs: [ build_artifacts, test_linux ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout the repository - name: Checkout the repository
@ -323,7 +286,7 @@ jobs:
gradle --debug publish gradle --debug publish
push_to_docker_registry: push_to_docker_registry:
needs: [ workflow_config, upload, test_linux, test_windows ] needs: [ workflow_config, upload, test_linux ]
if: needs.workflow_config.outputs.do_release == 'true' if: needs.workflow_config.outputs.do_release == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@ -150,6 +150,7 @@ tasks.withType<JavaCompile>().configureEach {
tasks.withType<Javadoc>().configureEach { tasks.withType<Javadoc>().configureEach {
options { options {
this as StandardJavadocDocletOptions this as StandardJavadocDocletOptions
addBooleanOption("frames", true)
addBooleanOption("Xdoclint:none", true) addBooleanOption("Xdoclint:none", true)
addStringOption("Xmaxwarns", "1") addStringOption("Xmaxwarns", "1")
encoding = "UTF-8" encoding = "UTF-8"