fix: Fixes migration check (#1626)
This commit is contained in:
parent
e21ff0eb28
commit
b29a79ac2d
4 changed files with 19 additions and 1 deletions
10
.github/porcelain.ps1
vendored
Normal file
10
.github/porcelain.ps1
vendored
Normal 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
|
||||||
|
}
|
||||||
4
Projects/Server/Migrations/Server.Items.BaseMulti.v0.json
generated
Normal file
4
Projects/Server/Migrations/Server.Items.BaseMulti.v0.json
generated
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"version": 0,
|
||||||
|
"type": "Server.Items.BaseMulti"
|
||||||
|
}
|
||||||
4
Projects/Server/Migrations/Server.Items.VirtualCheck.v0.json
generated
Normal file
4
Projects/Server/Migrations/Server.Items.VirtualCheck.v0.json
generated
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"version": 0,
|
||||||
|
"type": "Server.Items.VirtualCheck"
|
||||||
|
}
|
||||||
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- task: NuGetAuthenticate@1
|
- task: NuGetAuthenticate@1
|
||||||
- script: ./publish.cmd Release
|
- script: ./publish.cmd Release
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
- script: git diff --exit-code ./**/Migrations/*.v*.json
|
- powershell: ./.github/porcelain.ps1
|
||||||
displayName: Migration Changes
|
displayName: Migration Changes
|
||||||
- script: dotnet test --no-restore
|
- script: dotnet test --no-restore
|
||||||
displayName: 'Test'
|
displayName: 'Test'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue