Bird
0
0

In a Remix CI pipeline, what is the effect of adding this step?

medium📝 Predict Output Q5 of 15
Remix - Testing
In a Remix CI pipeline, what is the effect of adding this step?
- name: Cache node modules
  uses: actions/cache@v3
  with:
    path: ~/.npm
    key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
ADeletes node modules before install
BSpeeds up npm install by caching dependencies
CRuns npm install twice
DUploads node modules to production
Step-by-Step Solution
Solution:
  1. Step 1: Understand actions/cache usage

    This action caches files to speed up future runs by reusing dependencies.
  2. Step 2: Analyze cache path and key

    It caches npm files (~/.npm) keyed by OS and package-lock.json hash to restore dependencies quickly.
  3. Final Answer:

    Speeds up npm install by caching dependencies -> Option B
  4. Quick Check:

    actions/cache speeds up installs = True [OK]
Quick Trick: Cache dependencies to speed up CI installs [OK]
Common Mistakes:
MISTAKES
  • Thinking cache deletes files
  • Assuming cache runs install multiple times
  • Confusing cache with deployment upload

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes