From d63d48de176dff8e90630ec1b705f68cb7cd77a0 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 30 May 2022 00:34:06 +0300 Subject: [PATCH] ci: Add typescript test jobs for its older versions --- .github/workflows/nodejs.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 0976753f..47da9786 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -39,3 +39,22 @@ 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