add supertest types, fix vscode launch file #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: TypeScript Type Check | |
| on: | |
| push: {} | |
| pull_request: {} | |
| jobs: | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate demo project for testing | |
| run: node_modules/.bin/moleculer init --answers test/ci/answers.full.json --no-install . tmp-typecheck-project | |
| - name: Install dependencies in generated project | |
| run: npm install | |
| working-directory: ./tmp-typecheck-project | |
| - name: Run TypeScript type checking | |
| run: npm run typecheck | |
| working-directory: ./tmp-typecheck-project |