Run Javascript validation as part of test suite
This commit is contained in:
25
.github/workflows/test.yml
vendored
25
.github/workflows/test.yml
vendored
@@ -186,6 +186,29 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: coveralls --service=github --finish
|
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:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -220,6 +243,6 @@ jobs:
|
|||||||
report_paths: 'pytest-results.xml'
|
report_paths: 'pytest-results.xml'
|
||||||
annotate_only: true # forked repo cannot write to checks so just do annotations
|
annotate_only: true # forked repo cannot write to checks so just do annotations
|
||||||
- uses: mikepenz/action-junit-report@v6
|
- 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:
|
with:
|
||||||
report_paths: 'pytest-results.xml'
|
report_paths: 'pytest-results.xml'
|
||||||
|
|||||||
Reference in New Issue
Block a user