Run Javascript validation as part of test suite

This commit is contained in:
Max Berger
2026-03-08 00:45:32 +01:00
parent 64885fe32e
commit 555c9730a2

View File

@@ -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'