diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 00000000..3778b0fc --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,20 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "10.0.7", + "commands": [ + "dotnet-ef" + ], + "rollForward": false + }, + "trx-to-vsplaylist": { + "version": "1.3.0", + "commands": [ + "trx-to-vsplaylist" + ], + "rollForward": false + } + } +} \ No newline at end of file diff --git a/.github/workflows/PR-Build-And-Test.yml b/.github/workflows/PR-Build-And-Test.yml index 6da97804..af2f3b70 100644 --- a/.github/workflows/PR-Build-And-Test.yml +++ b/.github/workflows/PR-Build-And-Test.yml @@ -31,9 +31,17 @@ jobs: - name: Restore with dotnet run: dotnet restore /p:AccessToNugetFeed=false + - name: Restore local dotnet tools + run: dotnet tool restore + - name: Build with dotnet run: dotnet build --configuration Release --no-restore /p:AccessToNugetFeed=false + - name: Check for pending EF Core model changes + run: dotnet ef migrations has-pending-model-changes --project EssentialCSharp.Web --configuration Release --no-build + env: + ASPNETCORE_ENVIRONMENT: Development + - name: Expose GitHub Actions Runtime uses: actions/github-script@v9 with: