From 9a5ce33efb66f07cfc2ea19f52ff19cdf765614f Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 7 Mar 2021 10:34:13 -0800 Subject: [PATCH] test: add CI test that vercel.json does not change (#1986) * test: add CI test that vercel.json does not change * fix: fixup * test: debug * test: do not use tmp file --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dc537a41..d09f0eaa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -70,9 +70,20 @@ jobs: sleep 1 done echo Failed waiting for redis && exit 1 + - run: + name: Copy vercel.json + command: cp vercel.json vercel-old.json - run: name: Build command: yarn build + - run: + name: Check vercel.json unchanged + command: | + if ! diff -q vercel-old.json vercel.json &>/dev/null; then + diff vercel-old.json vercel.json + echo "vercel.json changed, run yarn build and make sure everything looks okay" + exit 1 + fi - run: name: Integration tests command: yarn test-in-ci