From 61255b7ba4bcf95786dfe8acb793822cb3ef2878 Mon Sep 17 00:00:00 2001 From: Daniele Dellafiore <66707+ildella@users.noreply.github.com> Date: Sun, 1 Sep 2024 18:09:31 +0100 Subject: [PATCH] had GPT fix it for me --- .github/workflows/tests.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1a6dc6b..970ff25 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,3 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - name: Tests on: @@ -11,19 +8,26 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x, 22.x] + node-version: [20, 22] steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: yarn - - run: yarn test + + - name: Enable Corepack + run: corepack enable + + - name: Install dependencies + run: yarn + + - name: Run tests + run: yarn test