From b3253ec1373b77cd8bb436b4abf4870529ea0dfc Mon Sep 17 00:00:00 2001 From: Sualeh Fatehi Date: Sat, 13 Apr 2024 22:23:33 -0400 Subject: [PATCH] Add .NET build for all branches --- .github/workflows/build.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d6559f0..827f35d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,18 @@ jobs: --no-transfer-progress \ --batch-mode \ compile + - id: prepare-dotnet-build + name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + - id: build-dotnet + name: .NET build and run tests + run: | + # C# build and run tests + cd C# + dotnet build + build-step1: name: Build "step1" runs-on: ubuntu-latest @@ -45,6 +57,18 @@ jobs: --no-transfer-progress \ --batch-mode \ compile + - id: prepare-dotnet-build + name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + - id: build-dotnet + name: .NET build and run tests + run: | + # C# build and run tests + cd C# + dotnet build + build-step2: name: Build "step2" runs-on: ubuntu-latest @@ -63,6 +87,19 @@ jobs: --no-transfer-progress \ --batch-mode \ test + - id: prepare-dotnet-build + name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + - id: build-dotnet + name: .NET build and run tests + run: | + # C# build and run tests + cd C# + dotnet build + dotnet test + build-step3: name: Build "step3" runs-on: ubuntu-latest @@ -81,6 +118,19 @@ jobs: --no-transfer-progress \ --batch-mode \ test + - id: prepare-dotnet-build + name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + - id: build-dotnet + name: .NET build and run tests + run: | + # C# build and run tests + cd C# + dotnet build + dotnet test + build-step4: name: Build "step4" runs-on: ubuntu-latest