add devcontainer configuration for .NET development Aspire, azd, git,… #28
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v-next | |
| pull_request: | |
| branches: | |
| - main | |
| - v-next | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' # Adjust the version as needed | |
| - name: Install .NET Aspire workload | |
| run: dotnet workload update && dotnet workload install aspire | |
| - name: Restore dependencies | |
| run: dotnet restore src/AzUrlShortener.sln | |
| - name: Build solution | |
| run: dotnet build src/AzUrlShortener.sln --no-restore --configuration Release |