-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid cache folder for macOS #792
Comments
I think I've found the issue, I added a PR here So maybe the issue is not related to this repo, the cypress install script should ensure that the .cache folder exists when installing on macOS |
If you look at the .github/workflows/example-basic.yml and the logs from running this e.g. https://github.com/cypress-io/github-action/actions/runs/4167116736/jobs/7212307325 you will see that the GitHub action works on macOS. Could you provide some steps to reproduce and a log file in order to understand the problem that you are running into? |
Sure, here is a repro on a CI machine :
here is a sample of the log:
With that said, maybe the issue doesn't come from the github action script, because the documentation of cypress states that the cache location is supposed to be found in the Another fix could be maybe to look in the |
|
In your logs it shows:
Would you post your .yml workflow so it is clearer what is being called and with what parameters? |
The following workflow runs without issues. I replaced the code in https://github.com/cypress-io/github-action/blob/master/.github/workflows/example-basic.yml to test it out. I'm guessing that you ran
I'm assuming that So I think that your expectations are more in line with an enhancement request than a bug report. We'll have to wait for the Cypress.io team to cross-check about this though. name: example-basic
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:
env:
DEBUG: '@cypress/github-action, cypress:*'
jobs:
basic-split-macos-12:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress install
uses: ./
with:
runTests: false
working-directory: examples/basic
- name: Cypress run
uses: ./
with:
install: false
working-directory: examples/basic There is an outdated example in https://github.com/bahmutov/cypress-gh-action-split-install/blob/master/.github/workflows/tests.yml about handling the Cypress cache by hand without using |
Closing due to inactivity.
|
[macOS latest version, package manager is yarn]
I was playing around the cache on my machine, and after removing manually the cache folders in
~/.cache
and~/Library/Caches
, cypress could not start anymore on the CI action.Locally, when I run
npx cypress verify
, cypress is correctly installed in~/Library/Caches/Cypress/12.5.1
, but the CI script tries to locate the executable under~/.cache/Cypress/12.5.1
I can mitigate the issue by adding a symbolic link to the library folder:
ln -s ~/Library/Caches/Cypress ~/.cache/Cypress
Can you confirm that the issue comes from the github action script ? Or am I missing some option related the install folder to use ?
The text was updated successfully, but these errors were encountered: