-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (33 loc) · 1.23 KB
/
build.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
36
37
38
39
40
41
42
43
44
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
name: Build
steps:
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
- name: Update rider version from Directory.Build.props
run: .\Abc.MoqComplete\Deployment\update_rider_version.ps1
shell: powershell
- name: Clean
run: dotnet clean Abc.MoqComplete\MoqComplete.sln --configuration Release && dotnet nuget locals all --clear
- name: Install dependencies
run: dotnet restore Abc.MoqComplete\MoqComplete.sln
- name: Build
run: dotnet build Abc.MoqComplete\MoqComplete.sln --configuration Release --no-restore
- name: Test
run: dotnet test Abc.MoqComplete\Abc.MoqComplete.Tests\bin\Abc.MoqComplete.Tests\Release\Abc.MoqComplete.Tests.dll --no-restore --verbosity normal
- name: Pack
run: dotnet pack Abc.MoqComplete\MoqComplete.sln --no-build --no-restore -c Release -o out
- name: Fix rider plugin
run: .\Abc.MoqComplete\Deployment\build_rider_plugin.ps1 out
shell: powershell
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: BuildResult
path: out