From 555c9730a2fada10690df9038b4f4cdea899c56e Mon Sep 17 00:00:00 2001 From: Max Berger Date: Sun, 8 Mar 2026 00:45:32 +0100 Subject: [PATCH] Run Javascript validation as part of test suite --- .github/workflows/test.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 047e76b5..445383db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -186,6 +186,29 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: coveralls --service=github --finish + js-test: + name: JS Type Check + runs-on: ubuntu-latest + needs: test-ubuntu-python-newest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24 + - name: JS Type Check + run: | + set -o pipefail + npx -p typescript tsc -p radicale/web/jsconfig.json | npx typescript-xunit-xml > tsc-results.xml + - uses: mikepenz/action-junit-report@v6 + if: ${{ failure() && (github.event.pull_request.head.repo.full_name != github.repository) }} + with: + report_paths: 'tsc-results.xml' + annotate_only: true # forked repo cannot write to checks so just do annotations + - uses: mikepenz/action-junit-report@v6 + if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository }} + with: + report_paths: 'tsc-results.xml' + lint: name: Lint runs-on: ubuntu-latest @@ -220,6 +243,6 @@ jobs: report_paths: 'pytest-results.xml' annotate_only: true # forked repo cannot write to checks so just do annotations - uses: mikepenz/action-junit-report@v6 - if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository }} with: report_paths: 'pytest-results.xml'