From 51e50e7c460736a08ac6ca930fadd6eb20462622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 9 Aug 2022 15:51:05 +0100 Subject: [PATCH] CI: Split setup and test steps --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ae99284..423bd62 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,12 +3,17 @@ type: docker name: default steps: -- name: test +- name: setup image: gitea.kosmos.org/kredits/docker-ci:latest commands: - cp -r /app/node_modules /drone/src/node_modules - chown -R drone:drone /drone/src - su drone -c 'npm install' +- name: test + image: gitea.kosmos.org/kredits/docker-ci:latest + commands: - su drone -c 'npm run devchain' & - sleep 5 - su drone -c 'npm test' + depends_on: + - setup