From 6f62f3ded10f72fb9771472a0203aed322fdbc82 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..6ad5ab2 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: + - install