-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1011 Bytes
/
test.yml
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
name: Test components
on:
push:
branches:
- master
paths-ignore:
- '**.md'
jobs:
test:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '6.0.x' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Test with dotnet
run: dotnet test --configuration Release --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
- name: Test Report
uses: phoenix-actions/test-reporting@v8
if: always()
with:
name: xUnit Tests
path: "TestResults-${{ matrix.dotnet-version }}/*.trx"
reporter: dotnet-trx
- name: Publish
run: nuget push **\*.nupkg -SkipDuplicate -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}