diff --git a/.github/workflows/self-test.yml b/.github/workflows/self-test.yml new file mode 100644 index 0000000..33f6704 --- /dev/null +++ b/.github/workflows/self-test.yml @@ -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 diff --git a/stressor/package.json b/stressor/package.json index acdc5e6..f373e66 100644 --- a/stressor/package.json +++ b/stressor/package.json @@ -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",