Skip to content

Commit 3886338

Browse files
Add EF migration drift check to PR workflow
Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/3732bf6c-e6ba-4e30-a7e4-83933137a7fc Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent 923ff8e commit 3886338

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/PR-Build-And-Test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@ jobs:
3131
- name: Restore with dotnet
3232
run: dotnet restore /p:AccessToNugetFeed=false
3333

34+
- name: Restore local dotnet tools
35+
run: dotnet tool restore
36+
3437
- name: Build with dotnet
3538
run: dotnet build --configuration Release --no-restore /p:AccessToNugetFeed=false
3639

40+
- name: Check for pending EF Core model changes
41+
run: dotnet ef migrations has-pending-model-changes --project EssentialCSharp.Web --configuration Release --no-build
42+
env:
43+
ASPNETCORE_ENVIRONMENT: Development
44+
3745
- name: Expose GitHub Actions Runtime
3846
uses: actions/github-script@v9
3947
with:

0 commit comments

Comments
 (0)