test: stage: test script: - npm run test dependencies: - build
pipeline: build: stage: build script: - npm install - npm run build artifacts: paths: - build/ buildnow gg github
deploy: stage: deploy script: - npm run deploy dependencies: - test environment: name: production url: https://example.com In this example, the pipeline consists of three stages: build, test, and deploy. The build stage installs dependencies and compiles the code, while the test stage runs automated tests. Finally, the deploy stage pushes the code changes to a production environment. test: stage: test script: - npm run test