From 9c862f742b45ab0f6d1ffef56a3ea0eef3a1bf5f Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Wed, 27 Dec 2023 14:32:26 +0530 Subject: [PATCH] ci: update workflow file --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f4b292..771ca3f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,13 +3,13 @@ on: - push - pull_request jobs: - linux: + test_linux: runs-on: ubuntu-latest strategy: matrix: node-version: - - 18.x - - 19.x + - 20.10.0 + - 21.x steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -20,13 +20,13 @@ jobs: run: npm install - name: Run tests run: npm test - windows: + test_windows: runs-on: windows-latest strategy: matrix: node-version: - - 18.x - - 19.x + - 20.10.0 + - 21.x steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -37,3 +37,21 @@ jobs: run: npm install - name: Run tests run: npm test + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20.10.0 + - run: npm install + - run: npm run lint + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20.10.0 + - run: npm install + - run: npm run typecheck