From 7c7cd23f2faab25bdf08be52e37de2a9c92a46e9 Mon Sep 17 00:00:00 2001 From: Chinedu Ekene Okpala Date: Thu, 1 Aug 2024 20:52:23 +0000 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 39 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63bf0e2..0550613 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,26 +10,23 @@ on: branches: [ "main" ] jobs: - build: - + cache-and-install: runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [20.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - defaults: - run: - working-directory: ./ steps: - - name: Set Repo - run: echo ${{ github.repository }} - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - repository: ${{ github.repository }} - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm install - - run: npm test + - name: Checkout + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + - name: Run tests + run: pnpm test +