From bd26b5bc9f052663e2cc510201e9c2d0e5fc7c57 Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Fri, 8 May 2020 12:29:17 +0200 Subject: [PATCH] test: check if build is up to date --- .circleci/config.yml | 14 ++++++++++++++ build/index.js | 1 + 2 files changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index fc995b15..9dc4e67b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,6 +9,13 @@ scripts: &scripts - run: yarn lint - run: yarn build +uptodate: &uptodate + steps: + - checkout + - run: yarn + - run: yarn build + - run: git diff --exit-code build + jobs: node-10: <<: *scripts @@ -26,6 +33,12 @@ jobs: <<: *scripts docker: - image: circleci/node:14 + uptodate: + <<: *uptodate + requires: + - node-12 + docker: + - image: circleci/node:12 workflows: version: 2 @@ -35,3 +48,4 @@ workflows: - node-12 - node-13 - node-14 + - uptodate diff --git a/build/index.js b/build/index.js index cc809960..70e32b16 100644 --- a/build/index.js +++ b/build/index.js @@ -54229,6 +54229,7 @@ exports.fromLocalCache = fromLocalCache; */ function toLocalCache(root, version) { return __awaiter(this, void 0, void 0, function* () { + console.log('asd'); return toolCache.cacheDir(root, 'expo-cli', version); }); }