Skip to content

Update build.yml

Update build.yml #41

Workflow file for this run

name: .NET build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [6.0, 7.0, 8.0]
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 src/Infobip.Api.Client/Infobip.Api.Client.csproj
- name: Build
run: dotnet build --no-restore src/Infobip.Api.Client/Infobip.Api.Client.csproj
- name: Restore Test dependencies
run: dotnet restore ApiClient.Tests/ApiClient.Tests.csproj # Restore step for the test project
- name: Build Test
run: dotnet build --no-restore ApiClient.Tests/ApiClient.Tests.csproj
- name: Test
run: dotnet test --no-build --verbosity normal ApiClient.Tests/ApiClient.Tests.csproj