Skip to content

Commit 1c35659

Browse files
committed
add typecheck workflow
1 parent dd5e8c4 commit 1c35659

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/typecheck.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: TypeScript Type Check
2+
3+
on:
4+
push: {}
5+
pull_request: {}
6+
7+
jobs:
8+
typecheck:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [20.x, 22.x, 24.x]
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'npm'
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Generate demo project for testing
29+
run: node_modules/.bin/moleculer init --answers test/ci/answers.full.json --no-install . tmp-typecheck-project
30+
31+
- name: Install dependencies in generated project
32+
run: npm install
33+
working-directory: ./tmp-typecheck-project
34+
35+
- name: Run TypeScript type checking
36+
run: npm run typecheck
37+
working-directory: ./tmp-typecheck-project

0 commit comments

Comments
 (0)