Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation from 10.0.5 to 10.0.6 #493
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Build and Test EssentialCSharp.Web | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| global-json-file: global.json | |
| - name: Set up dependency caching for faster builds | |
| uses: actions/cache@v5 | |
| id: nuget-cache | |
| with: | |
| path: | | |
| ~/.nuget/packages | |
| ${{ github.workspace }}/**/obj/project.assets.json | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| ${{ runner.os }}-nuget- | |
| - name: Restore with dotnet | |
| run: dotnet restore /p:AccessToNugetFeed=false | |
| - name: Build with dotnet | |
| run: dotnet build --configuration Release --no-restore /p:AccessToNugetFeed=false | |
| - name: Expose GitHub Actions Runtime | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN']); | |
| core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL']); | |
| - name: Run .NET Tests | |
| run: dotnet test --no-build --configuration Release --report-trx --coverage --results-directory ${{ runner.temp }} | |
| - name: Convert TRX to VS Playlist | |
| if: failure() | |
| uses: BenjaminMichaelis/trx-to-vsplaylist@v3 | |
| with: | |
| trx-file-path: '${{ runner.temp }}/*.trx' | |
| output-directory: '${{ runner.temp }}/vsplaylists' | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Build Container Image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| file: ./EssentialCSharp.Web/Dockerfile | |
| context: . | |
| outputs: type=docker,dest=${{ github.workspace }}/essentialcsharpwebimage.tar | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| build-args: ACCESS_TO_NUGET_FEED=false |