-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows test workflow and net462 test target
- Loading branch information
Showing
20 changed files
with
8,491 additions
and
1,263 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,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 |
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
Oops, something went wrong.