mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 15:35:03 +00:00
Merge branch 'main' into async
This commit is contained in:
commit
4e3ec3da48
39
.github/labels.yml
vendored
39
.github/labels.yml
vendored
@ -137,4 +137,41 @@
|
|||||||
description: "Reverts a previous commit"
|
description: "Reverts a previous commit"
|
||||||
- name: "style"
|
- name: "style"
|
||||||
color: "FFA500"
|
color: "FFA500"
|
||||||
description: "Changes that do not affect the meaning of the code (formatting, etc.)"
|
description: "Changes that do not affect the meaning of the code (formatting, etc.)"
|
||||||
|
- name: "admin"
|
||||||
|
color: "195055"
|
||||||
|
- name: "codex"
|
||||||
|
color: "ededed"
|
||||||
|
description: null
|
||||||
|
- name: "Github"
|
||||||
|
color: "0052CC"
|
||||||
|
- name: "github_actions"
|
||||||
|
color: "000000"
|
||||||
|
description: "Pull requests that update GitHub Actions code"
|
||||||
|
- name: "needs-changes"
|
||||||
|
color: "A65A86"
|
||||||
|
- name: "on-hold"
|
||||||
|
color: "2526F9"
|
||||||
|
- name: "python"
|
||||||
|
color: "2b67c6"
|
||||||
|
description: "Pull requests that update Python code"
|
||||||
|
- name: "size:L"
|
||||||
|
color: "eb9500"
|
||||||
|
description: "This PR changes 100-499 lines ignoring generated files."
|
||||||
|
- name: "size:M"
|
||||||
|
color: "ebb800"
|
||||||
|
description: "This PR changes 30-99 lines ignoring generated files."
|
||||||
|
- name: "size:S"
|
||||||
|
color: "77b800"
|
||||||
|
description: "This PR changes 10-29 lines ignoring generated files."
|
||||||
|
- name: "size:XL"
|
||||||
|
color: "ff823f"
|
||||||
|
description: "This PR changes 500-999 lines ignoring generated files."
|
||||||
|
- name: "size:XS"
|
||||||
|
color: "00ff00"
|
||||||
|
description: "This PR changes 0-9 lines ignoring generated files."
|
||||||
|
- name: "size:XXL"
|
||||||
|
color: "ffb8b8"
|
||||||
|
description: "This PR changes 1000+ lines ignoring generated files."
|
||||||
|
- name: "to research"
|
||||||
|
color: "FBCA04"
|
||||||
|
51
.github/workflows/build.yml
vendored
51
.github/workflows/build.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
jdk-version: [17, 21]
|
jdk-version: [17, 21]
|
||||||
|
spring-security: [true, false]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
@ -37,56 +38,41 @@ jobs:
|
|||||||
java-version: ${{ matrix.jdk-version }}
|
java-version: ${{ matrix.jdk-version }}
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: Build with Gradle and no spring security
|
- name: Build with Gradle and spring security ${{ matrix.spring-security }}
|
||||||
run: ./gradlew clean build
|
run: ./gradlew clean build
|
||||||
env:
|
env:
|
||||||
DISABLE_ADDITIONAL_FEATURES: true
|
DISABLE_ADDITIONAL_FEATURES: ${{ matrix.spring-security }}
|
||||||
|
|
||||||
- name: Build with Gradle and with spring security
|
|
||||||
run: ./gradlew clean build
|
|
||||||
env:
|
|
||||||
DISABLE_ADDITIONAL_FEATURES: false
|
|
||||||
|
|
||||||
- name: Check Test Reports Exist
|
- name: Check Test Reports Exist
|
||||||
id: check-reports
|
id: check-reports
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
declare -a dirs=(
|
||||||
|
"stirling-pdf/build/reports/tests/"
|
||||||
|
"stirling-pdf/build/test-results/"
|
||||||
|
"common/build/reports/tests/"
|
||||||
|
"common/build/test-results/"
|
||||||
|
"proprietary/build/reports/tests/"
|
||||||
|
"proprietary/build/test-results/"
|
||||||
|
)
|
||||||
missing_reports=()
|
missing_reports=()
|
||||||
|
for dir in "${dirs[@]}"; do
|
||||||
# Check for required test report directories
|
if [ ! -d "$dir" ]; then
|
||||||
if [ ! -d "stirling-pdf/build/reports/tests/" ]; then
|
missing_reports+=("$dir")
|
||||||
missing_reports+=("stirling-pdf/build/reports/tests/")
|
fi
|
||||||
fi
|
done
|
||||||
if [ ! -d "stirling-pdf/build/test-results/" ]; then
|
|
||||||
missing_reports+=("stirling-pdf/build/test-results/")
|
|
||||||
fi
|
|
||||||
if [ ! -d "common/build/reports/tests/" ]; then
|
|
||||||
missing_reports+=("common/build/reports/tests/")
|
|
||||||
fi
|
|
||||||
if [ ! -d "common/build/test-results/" ]; then
|
|
||||||
missing_reports+=("common/build/test-results/")
|
|
||||||
fi
|
|
||||||
if [ ! -d "proprietary/build/reports/tests/" ]; then
|
|
||||||
missing_reports+=("proprietary/build/reports/tests/")
|
|
||||||
fi
|
|
||||||
if [ ! -d "proprietary/build/test-results/" ]; then
|
|
||||||
missing_reports+=("proprietary/build/test-results/")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fail if any required reports are missing
|
|
||||||
if [ ${#missing_reports[@]} -gt 0 ]; then
|
if [ ${#missing_reports[@]} -gt 0 ]; then
|
||||||
echo "ERROR: The following required test report directories are missing:"
|
echo "ERROR: The following required test report directories are missing:"
|
||||||
printf '%s\n' "${missing_reports[@]}"
|
printf '%s\n' "${missing_reports[@]}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "All required test report directories are present"
|
echo "All required test report directories are present"
|
||||||
|
|
||||||
- name: Upload Test Reports
|
- name: Upload Test Reports
|
||||||
if: steps.check-reports.outcome == 'success'
|
if: always()
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
with:
|
with:
|
||||||
name: test-reports-jdk-${{ matrix.jdk-version }}
|
name: test-reports-jdk-${{ matrix.jdk-version }}-spring-security-${{ matrix.spring-security }}
|
||||||
path: |
|
path: |
|
||||||
stirling-pdf/build/reports/tests/
|
stirling-pdf/build/reports/tests/
|
||||||
stirling-pdf/build/test-results/
|
stirling-pdf/build/test-results/
|
||||||
@ -98,6 +84,7 @@ jobs:
|
|||||||
proprietary/build/test-results/
|
proprietary/build/test-results/
|
||||||
proprietary/build/reports/problems/
|
proprietary/build/reports/problems/
|
||||||
retention-days: 3
|
retention-days: 3
|
||||||
|
if-no-files-found: warn
|
||||||
|
|
||||||
check-licence:
|
check-licence:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div th:fragment="multi-toolAdvert" class="mx-auto">
|
<div th:fragment="multi-toolAdvert" class="mx-auto">
|
||||||
<div id="multi-toolAdvert" class="multi-toolAdvert">
|
<div id="multi-toolAdvert" class="multi-toolAdvert">
|
||||||
<div>
|
<div>
|
||||||
<span th:utext="#{multiTool-advert.message(|/multi-tool|)}"></span>
|
<span th:utext="#{multiTool-advert.message(|multi-tool|)}"></span>
|
||||||
<button id="closeMultiToolAdvert" style="position: absolute;
|
<button id="closeMultiToolAdvert" style="position: absolute;
|
||||||
inset-inline-end: 12px;
|
inset-inline-end: 12px;
|
||||||
inset-block-start: 10px;
|
inset-block-start: 10px;
|
||||||
@ -62,4 +62,4 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user