mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
24d46fb936
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
40 lines
945 B
YAML
40 lines
945 B
YAML
name: E2E
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: [16.x]
|
|
containers: [1, 2, 3, 4]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
# uses version from "packageManager" field in package.json
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
cache: pnpm
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
# Install NPM dependencies, cache them correctly
|
|
# and run all Cypress tests
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v4
|
|
with:
|
|
start: pnpm run dev
|
|
wait-on: 'http://localhost:9000'
|
|
record: true
|
|
headless: true
|
|
parallel: true
|
|
env:
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|