fix: Fixes migration check (#1626)

This commit is contained in:
Kamron Batman 2023-12-02 15:50:42 -05:00 committed by GitHub
parent e21ff0eb28
commit b29a79ac2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

10
.github/porcelain.ps1 vendored Normal file
View file

@ -0,0 +1,10 @@
$untrackedOrModified = git status --porcelain | Select-String -Pattern "^\?\? |^ M"
if ($untrackedOrModified) {
Write-Host "Untracked or modified files found."
Exit 1
}
else {
Write-Host "No untracked or modified files."
Exit 0
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.BaseMulti"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.VirtualCheck"
}

View file

@ -22,7 +22,7 @@ jobs:
- task: NuGetAuthenticate@1
- script: ./publish.cmd Release
displayName: 'Build'
- script: git diff --exit-code ./**/Migrations/*.v*.json
- powershell: ./.github/porcelain.ps1
displayName: Migration Changes
- script: dotnet test --no-restore
displayName: 'Test'