-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (42 loc) · 1.92 KB
/
Copy pathmulti-tests.yml
File metadata and controls
49 lines (42 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Multi.Tests
on:
push:
branches: [ dev, master ]
paths:
- 'src/DotNetCore.Collections.Multi/**'
- 'tests/DotNetCore.Collections.Multi.Tests/**'
- 'tests/DotNetCore.Collections.Multi.NetFxTests/**'
- '.github/workflows/multi-tests.yml'
pull_request:
paths:
- 'src/DotNetCore.Collections.Multi/**'
- 'tests/DotNetCore.Collections.Multi.Tests/**'
- 'tests/DotNetCore.Collections.Multi.NetFxTests/**'
jobs:
test:
runs-on: windows-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # SourceLink needs full history for deterministic build
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Build (11 TFMs)
# DocumentationFile is isolated per TFM by build/common.props, so parallel
# per-TFM builds no longer race on a shared project-root file (no CS0016).
run: dotnet build src/DotNetCore.Collections.Multi/DotNetCore.Collections.Multi.csproj -c Release
- name: Pack
run: dotnet pack src/DotNetCore.Collections.Multi/DotNetCore.Collections.Multi.csproj -c Release --no-build
- name: Test (net8.0)
run: dotnet test tests/DotNetCore.Collections.Multi.Tests/DotNetCore.Collections.Multi.Tests.csproj -c Release
- name: Test (.NET Framework regression, F6-24)
# net462: the lowest .NET Framework target the xunit runner stack executes. Pins the
# IReadOnlyCollection exposure at runtime on the affected generation (the framework's
# HashSet<T> / SortedSet<T> do not declare the interface on net451/net461 reference
# assemblies or 4.5.1/4.6.1-era runtimes), which a net8.0-only run can never see.
run: dotnet test tests/DotNetCore.Collections.Multi.NetFxTests/DotNetCore.Collections.Multi.NetFxTests.csproj -c Release