You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need some help with removing old versions of Cypress in the CI (github actions).
I'm facing issues with cypress binaries getting cached over and over again (we are now on 10.4.0 and I still have bin's from v8).
I know it's possible to prune the cache using cypress cache prune, but if I execute this function after the installation/test execution the cache is not changed.
I've tried to play with custom cache key but it looks like cypress bins are not included in this one.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need some help with removing old versions of Cypress in the CI (github actions).
I'm facing issues with cypress binaries getting cached over and over again (we are now on 10.4.0 and I still have bin's from v8).
I know it's possible to prune the cache using cypress cache prune, but if I execute this function after the installation/test execution the cache is not changed.
I've tried to play with custom cache key but it looks like cypress bins are not included in this one.
How I can correctly execute the cache prune?
my workflow:
(...)
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v4
with:
working-directory: "./Tests/UI tests"
record: true
config-file: cypress.config.js
spec: "cypress/envSetup/*"
cache-key: ${{ runner.os }}-hash-${{ hashFiles('Tests/UI tests/package-lock.json') }}
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEBUG: "cypress:server:args"
- name: prune cache
if: always()
run: |
npx cypress cache prune
npx cypress cache list
(...)
when my custom prune get's called I have just 1 dll which is correct. The issue is that this cache is not saved.
Thanks,
Piotr
Beta Was this translation helpful? Give feedback.
All reactions