Skip to content
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

chore(protect): fix production test caching #2095

Merged
1 commit merged into from Jul 19, 2021
Merged

chore(protect): fix production test caching #2095

1 commit merged into from Jul 19, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jul 16, 2021

Fixing the constantly failing production tests on Node 16.

https://github.com/snyk/snyk/actions/workflows/snyk-protect-production-smoke-tests.yml

Caches cannot be shared between different Node versions.

The new "cache" option from setup-node should solve this for us, sadly it needs a lock file.

Error: Dependencies lock file is not found in /home/runner/work/snyk/snyk. Supported file patterns: package-lock.json,yarn.lock

So I just added the Node version to the cache key.

@ghost ghost requested review from a team as code owners July 16, 2021 12:21
@ghost ghost requested a review from steph-herd-snyk-pm July 16, 2021 12:21
@github-actions
Copy link
Contributor

github-actions bot commented Jul 16, 2021

Messages
📖

This PR will not trigger a new version. It doesn't include any commit message with feat or fix.

Generated by 🚫 dangerJS against 697f81f

@ghost ghost force-pushed the protect/smoke-tests branch from 36820c2 to 78aa396 Compare July 16, 2021 12:27
Caches cannot be shared between different Node versions.
@ghost ghost force-pushed the protect/smoke-tests branch from 78aa396 to 697f81f Compare July 16, 2021 14:36
@ghost ghost merged commit b227f78 into master Jul 19, 2021
@ghost ghost deleted the protect/smoke-tests branch July 19, 2021 14:09
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant