Skip to content

Commit

Permalink
CI-windows.yml: fail build step if changed and unversioned files ex…
Browse files Browse the repository at this point in the history
…ist afterwards
  • Loading branch information
firewave committed Dec 12, 2024
1 parent c812753 commit d43f725
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,15 @@ jobs:
cd test\cfg
cl.exe windows.cpp -DUNICODE=1 -D_UNICODE=1 /Zs || exit /b !errorlevel!
cl.exe mfc.cpp /EHsc /Zs || exit /b !errorlevel!
- name: Show all ignored files
if: false # TODO: currently lists all the contents of ignored folders - we only need what actually matched
run: |
git ls-files --others --ignored --exclude-standard || exit /b !errorlevel!
- name: Check for changed and unversioned files
run: |
:: TODO: how to do this with a single command?
git status --ignored=no
:: TODO: make this work
:: git status --ignored=no | grep -q 'working tree clean'

0 comments on commit d43f725

Please sign in to comment.