Skip to content

Commit ff5848c

Browse files
authored
chore: modify run-tests-workflow and samples project (#3112)
1 parent 0524406 commit ff5848c

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/run-tests-selected.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,27 @@ on:
1717
- ubuntu-24.04-arm
1818
- macos-15-intel
1919
project:
20-
type: string
20+
type: choice
2121
description: Specify test project path
2222
required: true
2323
default: tests/BenchmarkDotNet.IntegrationTests
2424
options:
2525
- tests/BenchmarkDotNet.Tests
2626
- tests/BenchmarkDotNet.IntegrationTests
2727
- tests/BenchmarkDotNet.IntegrationTests.ManualRunning
28+
- tests/BenchmarkDotNet.IntegrationTests.ManualRunning.MultipleFrameworks
29+
- samples/BenchmarkDotNet.Samples
2830
framework:
2931
type: choice
3032
description: Specify target framework
3133
required: true
3234
options:
3335
- net8.0
3436
- net472
37+
# Following target framework is used for `MultipleFrameworks` tests
38+
- net10.0
39+
- net462
40+
- net48
3541
filter:
3642
type: string
3743
description: Test filter text (It's used for `dotnet test --filter`) Use default value when running all tests
@@ -101,3 +107,4 @@ jobs:
101107
if-no-files-found: ignore
102108
path: |
103109
artifacts/**/*
110+
**/BenchmarkDotNet.Artifacts/**

samples/BenchmarkDotNet.Samples.FSharp/BenchmarkDotNet.Samples.FSharp.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="..\..\build\common.props" />
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net462;net8.0</TargetFrameworks>
5+
<TargetFrameworks>net472;net8.0</TargetFrameworks>
66
<GenerateProgramFile>false</GenerateProgramFile>
77
<!-- Disable parallel tests between TargetFrameworks -->
88
<TestTfmsInParallel>false</TestTfmsInParallel>

samples/BenchmarkDotNet.Samples/BenchmarkDotNet.Samples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="..\..\build\common.props" />
33
<PropertyGroup>
44
<AssemblyTitle>BenchmarkDotNet.Samples</AssemblyTitle>
5-
<TargetFrameworks>net8.0;net462</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net472</TargetFrameworks>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<AssemblyName>BenchmarkDotNet.Samples</AssemblyName>
88
<OutputType>Exe</OutputType>

0 commit comments

Comments
 (0)