rich-pharmacist-74804
04/24/2023, 10:02 AMself-hosted as a runner. While npx cypress verify I get the error as missing dependency xvfb. Xvfb is just for display right? As I am running headless mode why should I install this dependency? Your help is highly appreciated.
https://cdn.discordapp.com/attachments/1099998824249950258/1099998824430313552/Screenshot_from_2023-04-24_15-54-46.png▾
many-airline-45402
04/24/2023, 10:18 AMrich-pharmacist-74804
04/24/2023, 10:53 AMmany-airline-45402
04/30/2023, 12:17 PMrich-pharmacist-74804
05/01/2023, 8:09 AMcypress/included/latest to handle all dependencies for the cypress run. And to fasten the workflow I cached the node modules . But since the docker has a different root user for other FE branches where they don't use docker there is an error as Permission denied. Any solutions?many-airline-45402
05/01/2023, 8:30 AMrich-pharmacist-74804
05/01/2023, 9:27 AMchrome.
I have this in the workflow:
cypress-run:
runs-on: [ self-hosted]
container: cypress/included:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache node packages
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-cypress-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-cypress-cache
For my particular branch(qa/development) it works perfectly. But the issue is for other developer branches where container: cypress/included:latest is not required. Get the following error.
Error: error: cannot lock ref 'refs/heads/qa/development': Unable to create '***.lock': Permission denied.many-airline-45402
05/01/2023, 10:31 AM