mirror of https://github.com/aminya/setup-cpp
ci: validate dist via git diff
This commit is contained in:
parent
c930e9c0c7
commit
4f1627cf7a
|
@ -61,6 +61,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pnpm run test.lint
|
pnpm run test.lint
|
||||||
|
|
||||||
|
- name: Validate Dist
|
||||||
|
run: |
|
||||||
|
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
|
||||||
|
echo "Detected uncommitted changes after build. See status below:"
|
||||||
|
git diff --ignore-space-at-eol --text dist/
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Upload Dist
|
- name: Upload Dist
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue