Skip to content

Commit 79aeb74

Browse files
Add CI workflow
1 parent 28eff2a commit 79aeb74

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
dotnet-version: [ "8.0" ]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup dotnet
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: ${{ matrix.dotnet-version }}
20+
21+
- name: Install dependencies
22+
run: dotnet restore
23+
24+
- name: Test with dotnet
25+
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
26+
27+
- name: Upload dotnet test results
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: dotnet-results-${{ matrix.dotnet-version }}
31+
path: TestResults-${{ matrix.dotnet-version }}
32+
# Use always() to always run this step to publish test results when there are test failures
33+
if: ${{ always() }}

0 commit comments

Comments
 (0)