ci: update cypress project id (#1981) [skip ci]
* ci: update cypress project id * try without cache * add install command * install cypress dep manually * use enable pre-post-scripts instead of manually installing * revert back to manual install * move cypress binary install after cache
This commit is contained in:
18
.github/workflows/cypress.yml
vendored
18
.github/workflows/cypress.yml
vendored
@@ -39,6 +39,9 @@ jobs:
|
|||||||
- name: Pnpm Setup
|
- name: Pnpm Setup
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Setup cypress cache
|
- name: Setup cypress cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
@@ -47,9 +50,15 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cypress-store-
|
${{ runner.os }}-cypress-store-
|
||||||
|
|
||||||
|
- name: Install Cypress binary
|
||||||
|
env:
|
||||||
|
CYPRESS_CACHE_FOLDER: ~/.cache/Cypress
|
||||||
|
run: pnpm exec cypress install
|
||||||
|
|
||||||
- name: Cypress run
|
- name: Cypress run
|
||||||
uses: cypress-io/github-action@v6
|
uses: cypress-io/github-action@v6
|
||||||
with:
|
with:
|
||||||
|
install: false
|
||||||
build: pnpm cypress:build
|
build: pnpm cypress:build
|
||||||
start: pnpm start
|
start: pnpm start
|
||||||
wait-on: 'http://localhost:5055'
|
wait-on: 'http://localhost:5055'
|
||||||
@@ -61,12 +70,3 @@ jobs:
|
|||||||
# Fix test titles in cypress dashboard
|
# Fix test titles in cypress dashboard
|
||||||
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
|
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
|
||||||
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
|
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
|
||||||
|
|
||||||
- name: Upload video files
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: cypress-videos
|
|
||||||
path: |
|
|
||||||
cypress/videos
|
|
||||||
cypress/screenshots
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { defineConfig } from 'cypress';
|
import { defineConfig } from 'cypress';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
projectId: 'xkm1b4',
|
projectId: 'onnqy3',
|
||||||
e2e: {
|
e2e: {
|
||||||
baseUrl: 'http://localhost:5055',
|
baseUrl: 'http://localhost:5055',
|
||||||
video: true,
|
video: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user