2023-05-05 16:03:24 +00:00
|
|
|
name: Setup PNPM
|
|
|
|
description: Sets up Node.js and runs PNPM so dependencies are installed.
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
node-version:
|
|
|
|
description: Node.js version
|
|
|
|
required: false
|
2024-04-02 14:14:58 +00:00
|
|
|
default: "20"
|
2023-05-05 16:03:24 +00:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Set up Node.js
|
2024-03-22 07:57:41 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-05-05 16:03:24 +00:00
|
|
|
with:
|
|
|
|
node-version: ${{ inputs.node-version }}
|
|
|
|
check-latest: true
|
|
|
|
|
|
|
|
- name: Enable Corepack
|
|
|
|
shell: bash
|
|
|
|
run: corepack enable
|
|
|
|
|
2024-11-06 07:25:49 +00:00
|
|
|
- name: PNPM store cache
|
|
|
|
uses: ./.github/actions/pnpm-store-cache
|
2023-05-05 16:03:24 +00:00
|
|
|
|
2024-11-06 07:25:49 +00:00
|
|
|
- name: Cypress binary cache
|
|
|
|
uses: ./.github/actions/cypress-cache
|
2023-05-05 16:03:24 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
shell: bash
|
2024-11-06 07:25:49 +00:00
|
|
|
run: pnpm install --prefer-offline --frozen-lockfile
|
|
|
|
|
|
|
|
# This step is only needed to ensure that the Cypress binary is installed.
|
|
|
|
# If the binary was retrieved from the cache, this step is a no-op.
|
|
|
|
- name: Install Cypress dependencies
|
|
|
|
shell: bash
|
|
|
|
working-directory: js/apps/admin-ui
|
|
|
|
run: pnpm exec cypress install
|