updating dotnet-ci.yml to show file paths #2
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: .NET CI | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| env: | |
| Solution_Name: DomainDrivenTutorial.sln | |
| Test_Project_Path: EShoppingTutorial.UnitTests/EShoppingTutorial.UnitTests.csproj | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # This new step will show us exactly where the files are | |
| - name: Debug - List Files | |
| run: dir /s /b *.csproj | |
| - name: Install .NET 10 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore ${{ env.Solution_Name }} | |
| - name: Build | |
| run: dotnet build ${{ env.Solution_Name }} --configuration Release --no-restore | |
| - name: Execute unit tests | |
| run: dotnet test ${{ env.Test_Project_Path }} --configuration Release --no-build |