Skip to content

Commit d7da373

Browse files
committed
Update appveyor.yml
1 parent 7caf684 commit d7da373

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/appveyor.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ build_script:
2929
- dotnet build src/Polyfill.slnx --configuration Release --verbosity quiet
3030
- pwsh: ./src/run-tests.ps1
3131
- dotnet build src/PolyfillTrimmed.slnf --target PublishAll --configuration Release
32+
- pwsh: |
33+
git diff --exit-code
34+
if ($LASTEXITCODE -ne 0) {
35+
Write-Error "There are unstaged changes after running tests. Please commit the generated files."
36+
exit 1
37+
}
38+
git diff --cached --exit-code
39+
if ($LASTEXITCODE -ne 0) {
40+
Write-Error "There are staged changes after running tests. Please commit the generated files."
41+
exit 1
42+
}
3243
3344
on_failure:
3445
- ps: Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

0 commit comments

Comments
 (0)