lint #4
This file contains hidden or 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 Komga | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - 'komga-webui/**' | |
| - 'komga-tray/src/main/resources/org/gotson/komga/*' | |
| - 'next-ui/**' | |
| push: | |
| paths-ignore: | |
| - 'komga-webui/**' | |
| - 'komga-tray/src/main/resources/org/gotson/komga/*' | |
| - 'next-ui/**' | |
| branches-ignore: | |
| - 'dependabot/**' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| fail-fast: false | |
| name: Test Komga - ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Java 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| java-package: 'jdk' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build | |
| run: ./gradlew build :komga-tray:jar | |
| - name: Upload Unit Test Results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-results-${{ matrix.os }} | |
| path: komga/build/test-results/ | |
| - name: Upload Unit Test Reports | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-reports-${{ matrix.os }} | |
| path: komga/build/reports/tests/ | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v6 | |
| if: always() | |
| with: | |
| report_paths: '**/build/test-results/test/TEST-*.xml' | |
| check_name: 'JUnit Test Report: ${{ matrix.os }}' | |
| - name: Conveyor - compute JDK module list | |
| if: github.event_name == 'push' && github.repository_owner == 'gotson' && contains(matrix.os, 'ubuntu') | |
| uses: hydraulic-software/conveyor/actions/build@v22.0 | |
| with: | |
| command: -f conveyor.detect.conf -Kapp.machines=mac.aarch64 make processed-jars | |
| signing_key: ${{ secrets.CONVEYOR_SIGNING_KEY }} | |
| agree_to_license: 1 | |
| - name: Compare JDK required modules | |
| id: conveyor_compare | |
| if: github.event_name == 'push' && github.repository_owner == 'gotson' && contains(matrix.os, 'ubuntu') | |
| run: diff --unified ./komga-tray/conveyor/required-jdk-modules.txt ./output/required-jdk-modules.txt | |
| - name: Upload JDK required modules | |
| if: steps.conveyor_compare.outcome == 'failure' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: conveyor-required-jdk-modules | |
| path: ./output/required-jdk-modules.txt |