Add support of net9 on github actions #136
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: Unit Test | |
| on: | |
| push: | |
| branches: | |
| - features/** | |
| - hotfix/** | |
| - releases/** | |
| paths: | |
| - src/** | |
| - tests/** | |
| - .github/** | |
| pull_request: | |
| branches: | |
| - develop | |
| - main | |
| paths: | |
| - src/** | |
| - tests/** | |
| - .github/** | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup .NET 8.0 | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup .NET 9.0 | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Install dependencies | |
| run: dotnet restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj | |
| - name: Build | |
| run: dotnet build --configuration Release --no-restore ./src/AzureMapsControl.Components/AzureMapsControl.Components.csproj | |
| - name: Test | |
| run: dotnet test --configuration Release ./tests/AzureMapsControl.Components.Tests/AzureMapsControl.Components.Tests.csproj |