Begin Pipeline for Automated Testing
To help ensure code quality, I should create a CICD pipeline for the app. This can help with:
- Automated testing
- Automated styling
- Etc.
My .gitlab-ci.yml file should look something like this:
stages:
- build
- test
- deploy
variables:
NODE_ENV: 'development'
before_script:
- npm install
build:
stage: build
script:
- npm run build
test:
stage: test
script:
- npm test
deploy:
stage: deploy
script:
- echo "Deploying to server"
# Add your deployment scripts here
only:
- main
Edited by Ella Wipatene