From e2bf33e4949c222d953b5df6149c9d7e815a6e13 Mon Sep 17 00:00:00 2001 From: Hanasa <62538473+nnivxix@users.noreply.github.com> Date: Thu, 3 Oct 2024 21:03:00 +0700 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2528f7e..b91ce74 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,14 +16,27 @@ jobs: strategy: matrix: - node-version: [ 20.x] + node-version: [ 20.x ] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v4 + + # Setup Node.js version - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' - - run: pnpm test + + # Install pnpm + - name: Install pnpm + run: npm install -g pnpm + + # Install dependencies using pnpm + - name: Install dependencies + run: pnpm install + + # Run tests using pnpm + - name: Run tests + run: pnpm test