0
0
Remixframework~20 mins

CI pipeline setup in Remix - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CI Pipeline Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Identify the output of a basic CI pipeline run

Given this simple GitHub Actions workflow snippet for a Remix app, what will be the output of the Run tests step if tests pass?

Remix
name: CI
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '18'
      - run: npm install
      - name: Run tests
        run: npm test
AThe step completes successfully with exit code 0 and logs showing all tests passed.
BThe step fails with exit code 1 and logs showing syntax errors in test files.
CThe step is skipped because no tests are found in the project.
DThe step completes but logs show warnings only, no test results.
Attempts:
2 left
💡 Hint

Think about what happens when npm test runs and all tests pass.

Configuration
intermediate
2:00remaining
Correct the YAML syntax error in a CI pipeline

Which option fixes the syntax error in this GitHub Actions workflow snippet?

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install dependencies
        run npm install
A
- name: Install dependencies
  run = npm install
B
- name: Install dependencies
  run npm install
C
- name: Install dependencies
  run: npm install
D
- name: Install dependencies
  run: "npm install"
Attempts:
2 left
💡 Hint

YAML requires a colon after keys and proper indentation.

Troubleshoot
advanced
2:00remaining
Diagnose why a Remix app build fails in CI

A Remix app build step in CI fails with the error: Cannot find module 'esbuild'. What is the most likely cause?

AThe <code>npm install</code> step was skipped or failed, so dependencies like esbuild are missing.
BThe Node.js version is too new and incompatible with esbuild.
CThe build command is incorrect and does not include esbuild.
DThe Remix app does not support building in CI environments.
Attempts:
2 left
💡 Hint

Check if dependencies are installed before building.

🔀 Workflow
advanced
2:00remaining
Choose the correct order of steps in a CI pipeline for Remix

What is the correct order of these steps in a CI pipeline for a Remix app?

A2,1,3,4
B2,3,1,4
C1,2,3,4
D3,2,1,4
Attempts:
2 left
💡 Hint

Think about what must happen before tests and build.

Best Practice
expert
2:00remaining
Select the best practice for caching dependencies in CI

Which option is the best practice to speed up CI pipeline runs for a Remix app using npm?

ASkip dependency installation entirely to save time.
BCache the <code>node_modules</code> folder directly between runs.
CUse a custom script to copy dependencies from a previous build.
DCache the npm cache folder (e.g., <code>~/.npm</code>) and run <code>npm ci</code> each time.
Attempts:
2 left
💡 Hint

Consider what is reliable and recommended by npm for CI.