Skip to content

Add typescript 5.3.0 and 5.4.0 into test workflow (#853) #1934

Add typescript 5.3.0 and 5.4.0 into test workflow (#853)

Add typescript 5.3.0 and 5.4.0 into test workflow (#853) #1934

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
types:
name: TypeScript ${{ matrix.typescript-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
typescript-version:
- "latest"
- "~5.4.0"
- "~5.3.0"
- "~5.2.0"
- "~5.1.0"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm install typescript@${{ matrix.typescript-version }}
- run: npx tsc