forked from open-telemetry/opentelemetry-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ngruson/3014-make-ci-checks-faster
Build examples separately
- Loading branch information
Showing
3 changed files
with
133 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ 'main*' ] | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: [ 'main*' ] | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
build-test-stable: | ||
strategy: | ||
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | ||
matrix: | ||
os: [ windows-latest, ubuntu-latest ] | ||
version: [ net462, net6.0, net7.0, net8.0 ] | ||
exclude: | ||
- os: ubuntu-latest | ||
version: net462 | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # fetching all | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
|
||
- name: Install dependencies | ||
run: dotnet restore examples\Examples.sln | ||
|
||
- name: Build | ||
run: dotnet build examples\Examples.sln --configuration Release --no-restore --property:ExposeExperimentalFeatures=false | ||
|
||
build-test-experimental: | ||
strategy: | ||
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | ||
matrix: | ||
os: [ windows-latest, ubuntu-latest ] | ||
version: [ net462, net6.0, net7.0, net8.0 ] | ||
exclude: | ||
- os: ubuntu-latest | ||
version: net462 | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # fetching all | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
|
||
- name: Install dependencies | ||
run: dotnet restore examples\Examples.sln | ||
|
||
- name: Build | ||
run: dotnet build examples\Examples.sln --configuration Release --no-restore --property:ExposeExperimentalFeatures=true | ||
|
||
- name: Test ${{ matrix.version }} | ||
run: dotnet test examples\Examples.sln **/bin/**/${{ matrix.version }}/*.Tests.dll --logger:"console;verbosity=detailed" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.8.34302.71 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MicroserviceExample", "MicroserviceExample", "{196FD231-A91E-499B-AC97-7756752FFF2B}" | ||
ProjectSection(SolutionItems) = preProject | ||
..\MicroserviceExample\.dockerignore = ..\MicroserviceExample\.dockerignore | ||
..\MicroserviceExample\docker-compose.yml = ..\MicroserviceExample\docker-compose.yml | ||
..\MicroserviceExample\README.md = ..\MicroserviceExample\README.md | ||
EndProjectSection | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Utils", "MicroserviceExample\Utils\Utils.csproj", "{8C276A35-FD69-4B87-84FF-3BAF238B127E}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApi", "MicroserviceExample\WebApi\WebApi.csproj", "{FD0FE601-113D-47D6-9220-3B7EDBBC3E24}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WorkerService", "MicroserviceExample\WorkerService\WorkerService.csproj", "{4AA3DDA3-765D-4F19-815B-5A8969AC5389}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Examples.AspNetCore", "AspNetCore\Examples.AspNetCore.csproj", "{CE7324F3-E14C-4EEC-B0D5-9EB9173A459F}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Examples.Console", "Console\Examples.Console.csproj", "{AB07B644-A164-416E-AA66-556DBE94956E}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Examples.GrpcService", "GrpcService\Examples.GrpcService.csproj", "{EC5BBA57-A9FC-4656-9455-83D3E2B54BDC}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{8C276A35-FD69-4B87-84FF-3BAF238B127E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8C276A35-FD69-4B87-84FF-3BAF238B127E}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8C276A35-FD69-4B87-84FF-3BAF238B127E}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8C276A35-FD69-4B87-84FF-3BAF238B127E}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{FD0FE601-113D-47D6-9220-3B7EDBBC3E24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{FD0FE601-113D-47D6-9220-3B7EDBBC3E24}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{FD0FE601-113D-47D6-9220-3B7EDBBC3E24}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{FD0FE601-113D-47D6-9220-3B7EDBBC3E24}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{4AA3DDA3-765D-4F19-815B-5A8969AC5389}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{4AA3DDA3-765D-4F19-815B-5A8969AC5389}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{4AA3DDA3-765D-4F19-815B-5A8969AC5389}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{4AA3DDA3-765D-4F19-815B-5A8969AC5389}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{CE7324F3-E14C-4EEC-B0D5-9EB9173A459F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{CE7324F3-E14C-4EEC-B0D5-9EB9173A459F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{CE7324F3-E14C-4EEC-B0D5-9EB9173A459F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{CE7324F3-E14C-4EEC-B0D5-9EB9173A459F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{AB07B644-A164-416E-AA66-556DBE94956E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{AB07B644-A164-416E-AA66-556DBE94956E}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{AB07B644-A164-416E-AA66-556DBE94956E}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{AB07B644-A164-416E-AA66-556DBE94956E}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{EC5BBA57-A9FC-4656-9455-83D3E2B54BDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{EC5BBA57-A9FC-4656-9455-83D3E2B54BDC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{EC5BBA57-A9FC-4656-9455-83D3E2B54BDC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{EC5BBA57-A9FC-4656-9455-83D3E2B54BDC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{8C276A35-FD69-4B87-84FF-3BAF238B127E} = {196FD231-A91E-499B-AC97-7756752FFF2B} | ||
{FD0FE601-113D-47D6-9220-3B7EDBBC3E24} = {196FD231-A91E-499B-AC97-7756752FFF2B} | ||
{4AA3DDA3-765D-4F19-815B-5A8969AC5389} = {196FD231-A91E-499B-AC97-7756752FFF2B} | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {565701CA-CAF6-459D-90F3-255A431B6047} | ||
EndGlobalSection | ||
EndGlobal |