Skip to content

Commit

Permalink
Validate types in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Jan 23, 2025
1 parent f0053e6 commit 462813c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/self-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Run the project's self-tests
on: [push, pull_request]

jobs:
runtest_task:
name: Validate TypeScript types
runs-on: ubuntu-24.04
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install NodeJS 20
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Test types
run: npm run test-types
3 changes: 2 additions & 1 deletion stressor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Stress test Test Plans via CI workflows",
"main": "stress-test.mts",
"scripts": {
"cancel-runs": "node --loader ts-node/esm cancel-all-workflows.mts"
"cancel-runs": "node --loader ts-node/esm cancel-all-workflows.mts",
"test-types": "tsc --noEmit"
},
"author": "",
"license": "MIT",
Expand Down

0 comments on commit 462813c

Please sign in to comment.