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
This commit is contained in:
Nolan Lawson 2021-03-07 10:34:13 -08:00 committed by GitHub
parent a6c9d41f46
commit 9a5ce33efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -70,9 +70,20 @@ jobs:
sleep 1 sleep 1
done done
echo Failed waiting for redis && exit 1 echo Failed waiting for redis && exit 1
- run:
name: Copy vercel.json
command: cp vercel.json vercel-old.json
- run: - run:
name: Build name: Build
command: yarn 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: - run:
name: Integration tests name: Integration tests
command: yarn test-in-ci command: yarn test-in-ci