Skip to content

Commit 0f260fd

Browse files
authored
Add local dotnet tool manifest for EF and trx-to-vsplaylist and validate EF migrations in CI (#1017)
1 parent c969fed commit 0f260fd

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.config/dotnet-tools.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-ef": {
6+
"version": "10.0.7",
7+
"commands": [
8+
"dotnet-ef"
9+
],
10+
"rollForward": false
11+
},
12+
"trx-to-vsplaylist": {
13+
"version": "1.3.0",
14+
"commands": [
15+
"trx-to-vsplaylist"
16+
],
17+
"rollForward": false
18+
}
19+
}
20+
}

.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)