From 1cfefaddf1c7650705ad9d737c510e0be2aae725 Mon Sep 17 00:00:00 2001 From: marshift Date: Thu, 29 Aug 2024 01:18:47 +0100 Subject: [PATCH] refactor: move unit test action to pnpm --- .github/workflows/test.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 452ed18..f6354b8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,27 +1,28 @@ -name: Run Unit Tests +name: Run unit tests on: + workflow_dispatch: push: branches: [master] pull_request: branches: [master] - workflow_dispatch: - jobs: test: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: "22" - - name: Setup Node - uses: actions/setup-node@v2 + - uses: pnpm/action-setup@v4 with: - node-version: "16" + version: "9" - - name: Install deps and build - run: npm ci + - name: Install dependencies + run: pnpm i - name: Test - run: npm test + run: pnpm test