image: node:latest
cache:
paths:
- node_modules/
testing:
stage: test
script:
- npm i gatsby-cli -g
- npm i
- npm test
- npm run build