Comments (7)
Azure DevOps Pipeline caching came out of preview the other day. It would be great to have an example of how to cache the Cypress binary in YAML Pipelines, as I am currently struggling to make it work.
from cypress-example-kitchensink.
More details suggested by other MVPs
- https://stackoverflow.com/questions/44546183/correct-way-to-use-npm-cache-vs-team-services
- https://visualstudio.uservoice.com/forums/330519-azure-devops-formerly-visual-studio-team-services/suggestions/32044321-improve-hosted-build-agent-performance-with-build
Seems Azure CI team is working on general caching solution, might make sense to wait for them
from cypress-example-kitchensink.
I know I am late to the party, but a small improvement on @ekulabuhov post:
Instead of hard coding the path you can also use path: $(LOCALAPPDATA)/Cypress
, also see this
from cypress-example-kitchensink.
- resources at https://docs.microsoft.com/en-us/azure/devops/artifacts/npm/npmrc?view=vsts&tabs=new-nav do not show how to cache node modules
from cypress-example-kitchensink.
Sample project: https://github.com/MicrosoftDocs/pipelines-javascript but does not show any caching for node_modules
or ~/.npm
folders
from cypress-example-kitchensink.
🎉 This issue has been resolved in version 1.9.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from cypress-example-kitchensink.
Hi! It might be useful to add that on a windows based image the path is different and looks like this:
- task: CacheBeta@1
inputs:
key: 'cypress | $(Agent.OS) | package-lock.json'
path: 'C:\Users\VssAdministrator\AppData\Local\Cypress'
restoreKeys: 'cypress | $(Agent.OS) | package-lock.json'
displayName: Cache cypress binary
Unfortunately, caching in Azure Pipelines is a bit crippled due to security restrictions described here: https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops#cache-isolation-and-security
Basically, caches are isolated between different branches which makes them less useful when used with short lived feature branches.
from cypress-example-kitchensink.
Related Issues (20)
- Azure Pipelines example uses non-recommended code HOT 2
- GitHub Topics update HOT 4
- Outdated Heroku CI example HOT 4
- package.json `engines` lists Node.js 14 in end-of-life status HOT 5
- Installation deprecations caused by netlify-plugin-cypress HOT 2
- CircleCI checksum failure installing GoogleChrome in Windows with Chocolatey HOT 3
- CircleCI runs Windows tests under unsupported Node.js 14 - renovate fails HOT 5
- CircleCI wrong Node.js used for `linux-build` (v16.16.0) and `mac-build` (v18.16.0) HOT 1
- element selector: ":last" vs ":last-child" HOT 4
- IDE Shows false errors regards codebase under Ventura MacOS HOT 3
- Missing API commands HOT 3
- CircleCI fails to install the ChromeDriver HOT 1
- Update HTML examples to conform to scaffolded tests HOT 10
- `cy.end()` test is inactive HOT 1
- GHA recording workflows fail in fork on push event
- GHA admin workflows fail in fork on pull_request event
- cy.end() test from earlier versions fails against example.cypress.io/commands/misc HOT 2
- CircleCI: macOS Intel support deprecation brownout failure HOT 2
- CircleCI bad engine warnings: node ^18.18.0 required HOT 4
- CircleCI bad engine warnings `linux-build`: node ^18.18.0 required HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-example-kitchensink.