Another build.yml #34
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 build | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| dotnet-version: [6.x, 7.x, 8.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build Api Client | |
| run: dotnet build --no-restore --framework net${{ matrix.dotnet-version }} src/Infobip.Api.Client/Infobip.Api.Client.csproj | |
| - name: Build Api Client tests | |
| run: dotnet build --no-restore --framework net${{ matrix.dotnet-version }} ApiClient.Tests/ApiClient.Tests.csproj | |
| - name: Run Tests | |
| run: dotnet test --no-build --framework net${{ matrix.dotnet-version }} --verbosity normal |