File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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
3344on_failure :
3445 - ps : Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
You can’t perform that action at this time.
0 commit comments