Skip to content

Commit 7a53536

Browse files
authored
Create dotnet-unit-test.yml
1 parent 7b40f49 commit 7a53536

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: dotnet-unit-test
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macos-latest, windows-2022]
13+
fail-fast: false
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 3.1.x
20+
- uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: 5.0.x
23+
- uses: actions/setup-dotnet@v1
24+
with:
25+
dotnet-version: 6.0.x
26+
- name: Restore dependencies
27+
run: dotnet restore
28+
- name: Build
29+
run: dotnet build --no-restore
30+
- name: Test
31+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)