From 3b35834bba515f7f4f48eeef41423db1a295c524 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 30 May 2022 00:40:01 +0300 Subject: [PATCH] ci: Add separate workflow for TS tests --- .github/workflows/nodejs.yml | 19 ------------------- .github/workflows/typescript.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/typescript.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 47da9786..0976753f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml new file mode 100644 index 00000000..af52097d --- /dev/null +++ b/.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