Add script for validating PR title (#4050)

This commit is contained in:
Bart Louwers
2026-01-14 18:54:02 +01:00
committed by GitHub
parent e0dbd33f00
commit a4cf4d3ffa
14 changed files with 172 additions and 79 deletions

26
.github/workflows/validate-scripts.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: validate-scripts
on:
workflow_dispatch:
push:
pull_request:
jobs:
validate-scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
with:
persist-credentials: false
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v4
with:
node-version-file: ".nvmrc"
- name: Typecheck
run: |
npm install
npx tsc -p tsconfig.json
- name: Run tests
run: node --test .github/scripts/**.test.ts