Skip to content

Commit 09ef195

Browse files
authored
ci: add a tests type check workflow (#80)
1 parent 606461b commit 09ef195

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI - tests type check
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
run_tests_ts_type_check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.head_ref }}
14+
15+
- uses: ./.github/actions/ci-common-setup
16+
17+
- name: TypeScript test build
18+
run: pnpm run test-typings-check

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"scripts": {
4646
"test": "vitest --run --config ./spec/vitest.config.ts",
4747
"test:dev": "vitest --watch --config ./spec/vitest.config.ts",
48+
"test-typings-check": "tsc --noEmit -p ./spec/tsconfig.json",
4849
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node ./scripts/set-module-type-in-dist-builds.mjs",
4950
"build-check": "tsc --noEmit -p ./tsconfig.json",
5051
"prepublishOnly": "npm run build"

spec/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"include": ["./**/*.ts", "./**/*.tsx"],
43
"extends": "../tsconfig.json",
4+
"include": ["./**/*.ts", "./**/*.tsx", "./**/*.js", "./**/*.mjs", "./**/*.jsx"],
55
"compilerOptions": {}
66
}

0 commit comments

Comments
 (0)