From b9c0c8c0ced601e8ef59fc73ad0f04ede1ea79e0 Mon Sep 17 00:00:00 2001 From: Daniel Starner Date: Tue, 2 May 2023 09:42:26 -0400 Subject: [PATCH] test against different typescript versions as well --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1a7887..1dbf6d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,13 +11,20 @@ jobs: strategy: fail-fast: false matrix: - node-version: [14.x, 15.x, 16.x, 18.x, 19.x, 20.x] + node-version: [18.x, 20.x] + ts-version: ['3.9', '4.1', '5.0'] steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Node.js ${{ matrix.node-version }} / Typescript ${{ matrix.ts-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci + + - name: Install Dependencies + run: npm ci + + - name: Install TypeScript ${{ matrix.ts }} + run: npm install typescript@${{ matrix.ts-version }} + - run: npm run lint - run: npm test