StoicBuilder
Later missionMission 33: Main is redYou can practise it now. It counts once you reach mission 33, after “A release customers can follow”.Back to HQ
Exit lesson
Reading a CI failureProLesson 28 of 45, about 8 min
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
0 XP

The app: Relay, a CI/CD pipeline

Relayharbor / mainrun 412
FailedRun 412 · a41c9e2 Prorate upgrades mid-cycle

Pick a job to read its log.

The pipeline file, and what changed

ci.yml .github/workflowstoken: every job
name: ci
on:
push: { branches: [main] }
pull_request:
env:
DEPLOY_TOKEN:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup # Node 22, npm ci
- run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup # Node 22, npm ci
- run: npm test
- uses: actions/upload-artifact@v4
if: always() # keep the report when tests fail
with: { name: test-report, path: reports/junit.xml }
build:
needs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup # Node 22, npm ci
- run: npm run build
- uses:
with: { name: harbor-web, path: dist/ }
deploy:
needs:
if: github.ref == 'refs/heads/main'
environment: production
runs-on: ubuntu-latest
steps:
- uses:
with: { name: harbor-web, path: dist/ }
- run: ./scripts/deploy.sh dist/

The MagisterThis is Relay, a CI service like GitHub Actions. Every push to Harbor’s main branch runs the pipeline in the file on the right: lint and test, then build, then deploy. Run 412 is red. Open the job that failed, then find the line in the file that kept build from running.

Step 1 of 7Open the failing job
  • Open the failing job
  • Tap what build waits for in ci.yml

You’re not signed in, so this lesson won’t be saved to your path. Sign in free to keep your XP.