From 8912fa416649698ae701c31bdcd9082c524ad442 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Sat, 30 Jun 2018 16:48:56 +0200 Subject: [PATCH] [enh] ci: caching of the node_modules/ and transpiled files + make `test` phase occur before `pages` --- .gitlab-ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16f0427b9..058ba2ff8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,8 @@ stages: - github-sync - build - - pages - test + - pages - package - prerelease - release @@ -37,6 +37,10 @@ push_to_github: build: <<: *nvm_env stage: build + cache: + untracked: true + paths: + - node_modules/ script: - yarn @@ -61,8 +65,11 @@ pages: test: <<: *nvm_env stage: test + cache: + untracked: true + paths: + - node_modules/ script: - - yarn - yarn test # Clean the dump directory before testing - rm -rf /tmp/duniter_ci_dump/ -- GitLab