Make sample config CI diff visible (#97)

* Replace cmp with diff, and check if the diff is visible

* changelog
This commit is contained in:
Will Hunt 2021-12-14 17:53:01 +00:00 committed by GitHub
parent 8bdf789553
commit 9425b778fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16
- run: yarn
- run: node lib/Config/Defaults.js --config > expected-config.sample.yml
- run: cmp --silent config.sample.yml expected-config.sample.yml
- run: yarn --ignore-scripts && yarn build:app
- run: node lib/Config/Defaults.js --config | diff config.sample.yml -
test:
runs-on: ubuntu-latest
strategy:

1
changelog.d/97.misc Normal file
View File

@ -0,0 +1 @@
CI jobs now report the diff between the generated config and the in-tree sample config.