From 46f36db520446e6f7b620e24adbc34246b92a3a4 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Fri, 29 Nov 2024 14:34:17 +0100 Subject: [PATCH 1/2] Update test.yml --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f19d95..b29cc6a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,8 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - - run: yarn - - run: yarn test - - run: yarn lint + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + - run: npm ci + - run: npm test + - run: npm run lint From 0ed985cbde5942aa7cd192a9e3cacda48e46ed9c Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Fri, 29 Nov 2024 14:35:43 +0100 Subject: [PATCH 2/2] ci: use recent node versions --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b29cc6a..edd7a49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,10 +5,15 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 20, "lts/*"] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} - run: npm ci - run: npm test - run: npm run lint