From 005d546767508227309b01c75a47c006ccb46f26 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Thu, 22 Feb 2024 09:26:50 +0100 Subject: [PATCH] ci: test with older TypeScript version --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d69694..da08b0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: strategy: matrix: node-version: + - 14 - 20 steps: @@ -31,5 +32,11 @@ jobs: - name: Install dependencies run: npm ci + # the "override" keyword was added in typescript@4.5.0 + # else, users can go down to typescript@3.8.x ("import type") + - name: Install TypeScript 4.5 + run: npm i typescript@4.5 + if: ${{ matrix.node-version == '14' }} + - name: Run tests run: npm test