From 6d39da1d6692f13dd4f7bbf0b1536cfbe8887151 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 9 Oct 2023 22:57:03 +0100 Subject: [PATCH] ci(frontend): fix frontend test workflow --- .github/workflows/r-frontend_tests.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/r-frontend_tests.yml b/.github/workflows/r-frontend_tests.yml index ea14239e40..1aac1958bc 100644 --- a/.github/workflows/r-frontend_tests.yml +++ b/.github/workflows/r-frontend_tests.yml @@ -12,16 +12,21 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 + with: + version: 8 + node-version: 18 + - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: "18" + node-version: 18 + cache: "pnpm" + cache-dependency-path: "src/frontend/pnpm-lock.yaml" - - name: Setup pnpm - uses: pnpm/action-setup@v2.4.0 - with: - package_json_file: src/frontend/package.json - version: 8.8.0 + - name: Install dependencies + working-directory: src/frontend + run: pnpm install - name: Test Frontend working-directory: src/frontend