Skip to content

Commit

Permalink
Add Windows test workflow and net462 test target
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Jul 5, 2023
1 parent ff63b78 commit 4e34f9e
Show file tree
Hide file tree
Showing 20 changed files with 8,491 additions and 1,263 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Windows tests

on:
push:
paths-ignore:
- '*.md'
- '*.asciidoc'
- '.editorconfig'
- 'docs/**'
branches:
- main
tags:
- "*.*.*"
pull_request:
paths-ignore:
- '*.md'
- '*.asciidoc'
- '.editorconfig'
- 'docs/**'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

defaults:
run:
shell: cmd

jobs:
tests:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Fetch Tags
run: |
git fetch --prune --unshallow --tags
echo exit code $?
git tag --list
- name: NuGet package cache
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json

- name: Test
run: ./build.bat test --report

- name: Test Results
if: success() || failure()
uses: mikepenz/action-junit-report@v3
with:
report_paths: 'build/output/junit-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
fail_on_failure: true
require_tests: true
check_name: Test Results
8 changes: 7 additions & 1 deletion tests/Tests.ClusterLauncher/Tests.ClusterLauncher.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net462;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
</PropertyGroup>
<PropertyGroup>
<!-- https://github.com/NuGet/Home/issues/9195 -->
<!-- https://github.com/NuGet/Home/issues/10456 -->
<!-- https://github.com/dotnet/sdk/issues/26505 -->
<RestoreLockedMode>false</RestoreLockedMode>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Tests.Core\Tests.Core.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 4e34f9e

Please sign in to comment.