ci(e2e): fix e2e tests CI to use pnpm

We need to upgrade cypress-io/github-action to v4.2.0
as that's the first version that supported pnpm.

See https://github.com/cypress-io/github-action/releases/tag/v4.2.0
This commit is contained in:
Alois Klink
2022-09-25 19:38:47 +01:00
parent 29c52ec4d4
commit 24d46fb936

View File

@@ -16,29 +16,21 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/cache@v3 - uses: pnpm/action-setup@v2
id: yarn-and-build-cache # uses version from "packageManager" field in package.json
with:
path: |
~/.cache/Cypress
build
node_modules
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-build-
- name: Setup Node.js ${{ matrix.node-version }} - name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
cache: yarn cache: pnpm
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
# Install NPM dependencies, cache them correctly # Install NPM dependencies, cache them correctly
# and run all Cypress tests # and run all Cypress tests
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v3 uses: cypress-io/github-action@v4
with: with:
start: yarn dev start: pnpm run dev
wait-on: 'http://localhost:9000' wait-on: 'http://localhost:9000'
record: true record: true
headless: true headless: true