default: before_script: - yarn cache: paths: - node_modules/ .test: extends: default script: - yarn test test 6: extends: .test image: node:6 cache: key: node-6 test latest: extends: .test image: node:latest cache: key: node-latest