polite-alarm-78904
10/13/2022, 9:39 AM`
name: test
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
container: cypress/browsers:node12.18.3-chrome87-ff82
steps:
- uses: actions/checkout@v2
- uses: cypress-io/github-action@v4
with:
browser: chrome
build: npm run build
start: npm start & wait-on http://localhost:8080
record: true
command: npm run cy:run
spec: |
cypress/e2e/tests/admin/*
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_admin: true
PUBLIC_PATH: "/_nuxt/"
config-file: cypress.config.ts
creamy-toddler-52067
10/13/2022, 10:27 AMsome-thailand-3202
10/13/2022, 11:40 AMstale-optician-85950
10/13/2022, 11:52 AMstale-optician-85950
10/13/2022, 11:57 AMmysterious-wall-17437
10/13/2022, 12:50 PMsome-thailand-3202
10/13/2022, 1:19 PMmysterious-belgium-25713
10/13/2022, 3:06 PMlate-dinner-1440
10/13/2022, 11:01 PMpolite-painting-51763
10/14/2022, 1:04 AMstale-optician-85950
10/14/2022, 7:53 AMpolite-painting-51763
10/14/2022, 8:03 AMfresh-doctor-14925
10/14/2022, 8:28 AMfor()
loop would be more suited to your use case?polite-painting-51763
10/14/2022, 8:32 AMfresh-doctor-14925
10/14/2022, 11:43 AMpolite-painting-51763
10/14/2022, 5:32 PMfresh-doctor-14925
10/14/2022, 6:55 PMOpen-xcorp-qatesting
If that isn't what you're after, you could pass them in as env vars in the command, then use those to form the baseUrl in your cypress.config.js
polite-painting-51763
10/14/2022, 6:57 PMfresh-doctor-14925
10/14/2022, 7:00 PMCypress.env()
, that should show you what to doelegant-river-87347
10/17/2022, 2:48 AMgray-kilobyte-89541
10/17/2022, 10:35 AMwooden-army-62090
10/17/2022, 3:01 PMmysterious-belgium-25713
10/17/2022, 3:12 PMincalculable-rainbow-43330
10/17/2022, 3:43 PMstraight-kilobyte-77939
10/17/2022, 9:30 PMgreen-queen-82383
10/18/2022, 9:31 AMThe cypress npm package is installed, but the Cypress binary is missing.
We expected the binary to be installed here: /home/runner/.cache/Cypress/10.10.0/Cypress/Cypress
Reasons it may be missing:
- You're caching 'node_modules' but are not caching this path: /home/runner/.cache/Cypress
- You ran 'npm install' at an earlier build step but did not persist: /home/runner/.cache/Cypress
Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.
Alternatively, you can run 'cypress install' to download the binary again.
The relevant actions:
yaml
- uses: pnpm/action-setup@v2.2.2
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm i
- name: Cypress run
uses: cypress-io/github-action@v4
with:
install: false
working-directory: apps/myapp
command: pnpm cypress:ci
start: pnpm dev
wait-on: 'http://localhost:3000'
Anyone have a clue of what it is I need to do to get this working?powerful-orange-86819
10/18/2022, 9:57 AMgray-kilobyte-89541
10/18/2022, 10:56 AMgray-kilobyte-89541
10/18/2022, 10:58 AMmysterious-belgium-25713
10/18/2022, 11:30 AM