Matrix Build with Caching
带缓存的矩阵构建
Set up a GitHub Action that tests a project across multiple Node.js versions with dependency caching.
设置一个GitHub Action,用于在多个Node.js版本下测试项目,并启用依赖缓存功能。
Prompt
Create a matrix build GitHub Action that tests my Node.js project on Node 16, 18, and 20. Include steps to cache dependencies for faster builds.