build(deps): Bump actions/download-artifact from 5 to 6 #209
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@v5 | |
| - 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@v4 | |
| 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: Run .NET Tests | |
| run: dotnet test --no-build --configuration Release --logger trx --results-directory ${{ runner.temp }} | |
| - name: Convert TRX to VS Playlist | |
| if: failure() | |
| uses: BenjaminMichaelis/trx-to-vsplaylist@v1 | |
| with: | |
| trx-file-path: '${{ runner.temp }}/*.trx' | |
| output-directory: '${{ runner.temp }}/vsplaylists' | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Container Image | |
| uses: docker/build-push-action@v6 | |
| 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 |