From 9f0868e11daa222c14ba532fcb725632dbb2522b Mon Sep 17 00:00:00 2001 From: Igor Starovierov Date: Mon, 7 Oct 2024 08:44:12 +0000 Subject: [PATCH] ci: Update node matrix --- .github/workflows/ci.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aa60f2..a4a2f17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,18 @@ on: pull_request: jobs: - ci: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci + - run: npm run lint + + tests: runs-on: ubuntu-latest strategy: @@ -13,15 +24,9 @@ jobs: node-version: [12, 14, 16, 18, 20, 22] steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: "npm" - - name: Install dependencies - run: npm ci - - name: Linters - run: npm run lint - - name: Tests - run: npm test + - run: npm ci + - run: npm test