Skip to content

Commit

Permalink
ci: Add separate workflow for TS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed May 29, 2022
1 parent 4ff5051 commit 3b35834
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/nodejs.yml
Expand Up @@ -39,22 +39,3 @@ jobs:
with: { node-version: 16.x }
- run: npm ci
- run: npm run lint

typescript:
runs-on: ubuntu-latest

strategy:
matrix:
ts-version: ['4.0', '4.2', '4.4', '4.6']

steps:
- uses: actions/checkout@v2
with: { submodules: true }
- name: Use Node.js
uses: actions/setup-node@v1
with: { node-version: 16.x }
- run: npm ci
- run: npm install --no-save typescript@${{ matrix.ts-version }}
- run: npm run test:types
- run: npm run build:node
- run: npm run test:dist:types
31 changes: 31 additions & 0 deletions .github/workflows/typescript.yml
@@ -0,0 +1,31 @@
name: TypeScript

on:
pull_request:
branches: [master]
push:
branches: [master]
workflow_dispatch:

jobs:
typescript:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with: { node-version: 16.x }
- run: npm ci
- run: npm run build:node
- run: npm run test:dist:types

- run: npm install --no-save typescript@4.2
- run: npm run test:dist:types

- run: npm uninstall jest
- run: npm install --no-save typescript@4.0
- run: npm run test:dist:types

- run: npm install --no-save typescript@3.8
- run: npm run test:dist:types

0 comments on commit 3b35834

Please sign in to comment.