From 9d692366b484ec593b021d6aed8c7d61d9748d90 Mon Sep 17 00:00:00 2001 From: Nicholas Charriere Date: Wed, 10 Jul 2024 14:14:47 -0700 Subject: [PATCH] Add pnpm config to github workflow runner --- .github/workflows/run-tests.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1e805ee4..577d9118 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,7 +2,7 @@ # For now we only run against node 22.x, but can easily add more node versions should we decide to support them. # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Node.js CI +name: Node.js + pnpm CI on: push: @@ -20,15 +20,26 @@ jobs: node-version: [22.x] steps: + - name: Checkout - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 8 + run_install: true + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - - name: Install frontend dependencies - run: npm ci - - name: Lint frontend - run: npm run check-prettier + cache: 'pnpm' + + - name: Lint + run: pnpm run check-prettier + - name: Check that the application can successfully build - run: npm run build + run: pnpm run build + + - name: Test + run: pnpm --filter api test