Skip to content

Update main.yml

Update main.yml #14

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
- master
jobs:
build-arh-dotnet:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x' # or whichever version you need for .NET
- run: echo '${{ steps.stepid.outputs.dotnet-version }}'
- name: Build .NET Standard DLL
run: dotnet build -c Release AdvancedRestHandler/AdvancedRestHandler.csproj
build-arh-dotnet-core:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1' # or whichever version you need for .NET Core
- run: echo '${{ steps.stepid.outputs.dotnet-version }}'
- name: Build .NET Standard DLL
run: dotnet build -c Release AdvancedRestHandler/AdvancedRestHandler.csproj
build-arh-dotnet-framework:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '4.8' # or whichever version you need for .NET Framework
- run: echo '${{ steps.stepid.outputs.dotnet-version }}'
- name: Build .NET Standard DLL
run: dotnet build -c Release AdvancedRestHandler/AdvancedRestHandler.csproj
build-test-dotnet:
runs-on: ubuntu-latest
needs: build-arh-dotnet
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x' # or whichever version you need for .NET
- run: echo '${{ steps.stepid.outputs.dotnet-version }}'
- name: Build .NET Project
run: dotnet build -c Release Tests/AdvancedRestHandler.Test_Net/AdvancedRestHandler.Test_Net.csproj
build-test-dotnet-core:
runs-on: ubuntu-latest
needs: build-arh-dotnet-core
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1' # or whichever version you need for .NET Core
- run: echo '${{ steps.stepid.outputs.dotnet-version }}'
- name: Build .NET Core Project
run: dotnet build -c Release Tests/AdvancedRestHandler.Test_NetCore/AdvancedRestHandler.Test_NetCore.csproj
build-test-dotnet-framework:
runs-on: windows-latest
needs: build-arh-dotnet-framework
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET Framework
uses: actions/setup-dotnet@v1
with:
dotnet-version: '4.8' # or whichever version you need for .NET Framework
- run: echo '${{ steps.stepid.outputs.dotnet-version }}'
- name: Build .NET Framework Project
run: msbuild /t:restore /p:Configuration=Release Tests/AdvancedRestHandler.Test_NetFramework/AdvancedRestHandler.Test_NetFramework.csproj