Last active
October 5, 2019 08:40
-
-
Save ekpangmichael/a96871ef6340b376103d3f403586e721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set a base docker image, using node alpine because it is lightweight | |
image: node:10.16.0-alpine | |
# This folder is cached between builds and will speed up subsequent build | |
cache: | |
paths: | |
- node_modules/ | |
# Setup all the stages | |
stages: | |
- install | |
- test | |
- build | |
- deploy_production | |
# job to install dependencies | |
Run install: | |
stage: install | |
script: | |
- yarn install | |
# Job to run test | |
Run test: | |
stage: test | |
script: | |
- yarn test | |
# Job to run build | |
Run build: | |
stage: build | |
script: | |
- yarn build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment