Skip to content

Commit aa102ec

Browse files
authored
Create dotnet.yml
Signed-off-by: 永安404 <101850798+YongAn404@users.noreply.github.com>
1 parent d1e86e8 commit aa102ec

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
21+
- name: Setup NuGet
22+
uses: NuGet/setup-nuget@v2.0.0
23+
24+
- name: Restore NuGet packages
25+
run: nuget restore BAPlugin.sln
26+
27+
- name: Restore dependencies
28+
run: dotnet restore
29+
30+
- name: Build
31+
run: dotnet build --no-restore
32+
33+
- name: Test
34+
run: dotnet test --no-build --verbosity normal
35+

0 commit comments

Comments
 (0)