From dd36ddc9b85c4c3af457b4aeac48425599b875ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20G=C3=B3mez?= Date: Sun, 27 Oct 2024 18:31:59 +0100 Subject: [PATCH] chore: update test action --- .github/workflows/test.yaml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 00b3e41..3e1d37d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,17 +1,28 @@ -name: Test -on: [push] +on: + - push + - pull_request jobs: test: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - name: Checkout + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 with: - node-version: '20' + node-version: 20 cache: 'pnpm' - - run: | - corepack enable - pnpm install - - run: | - pnpm run all + + - name: Install dependencies + run: pnpm install + + - name: Run tests + run: pnpm run all