Code QuizAdvanced

CI/CD Pipeline Stage Order Bug

A CI/CD pipeline runs build, test, and deploy stages — but the stage order is wrong.

Codeyaml
# .gitlab-ci.yml
stages:
  - build
  - deploy
  - test

build_app:
  stage: build
  script:
    - npm ci
    - npm run build

test_app:
  stage: test
  script:
    - npm test

deploy_app:
  stage: deploy
  script:
    - ./deploy.sh production

What is the bug in this CI/CD pipeline configuration?