Skip to content

Commit c145975

Browse files
committed
Add Windows test workflow and net462 test target
1 parent 554b1ee commit c145975

20 files changed

+7000
-1232
lines changed

.github/workflows/test-windows.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Windows tests
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '*.md'
7+
- '*.asciidoc'
8+
- '.editorconfig'
9+
- 'docs/**'
10+
branches:
11+
- main
12+
tags:
13+
- "*.*.*"
14+
pull_request:
15+
paths-ignore:
16+
- '*.md'
17+
- '*.asciidoc'
18+
- '.editorconfig'
19+
- 'docs/**'
20+
21+
permissions:
22+
contents: read
23+
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
27+
28+
defaults:
29+
run:
30+
shell: cmd
31+
32+
jobs:
33+
tests:
34+
runs-on: windows-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v3
38+
with:
39+
fetch-depth: 1
40+
41+
- name: Fetch Tags
42+
run: |
43+
git fetch --prune --unshallow --tags
44+
echo exit code $?
45+
git tag --list
46+
47+
- name: NuGet package cache
48+
uses: actions/cache@v3
49+
with:
50+
path: ~/.nuget/packages
51+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }}
52+
restore-keys: |
53+
${{ runner.os }}-nuget
54+
55+
- name: Setup dotnet
56+
uses: actions/setup-dotnet@v3
57+
with:
58+
global-json-file: global.json
59+
60+
- name: Test
61+
run: ./build.bat test --report
62+
63+
- name: Test Results
64+
if: success() || failure()
65+
uses: mikepenz/action-junit-report@v3
66+
with:
67+
report_paths: 'build/output/junit-*.xml'
68+
github_token: ${{ secrets.GITHUB_TOKEN }}
69+
fail_on_failure: true
70+
require_tests: true
71+
check_name: Test Results

tests/Tests.ClusterLauncher/Tests.ClusterLauncher.csproj

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net462;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
<CheckEolTargetFramework>false</CheckEolTargetFramework>
66
</PropertyGroup>
7+
<PropertyGroup>
8+
<!-- https://github.com/NuGet/Home/issues/9195 -->
9+
<!-- https://github.com/NuGet/Home/issues/10456 -->
10+
<!-- https://github.com/dotnet/sdk/issues/26505 -->
11+
<RestoreLockedMode>false</RestoreLockedMode>
12+
</PropertyGroup>
713
<ItemGroup>
814
<ProjectReference Include="..\Tests.Core\Tests.Core.csproj" />
915
</ItemGroup>

0 commit comments

Comments
 (0)