-
Notifications
You must be signed in to change notification settings - Fork 19
58 lines (46 loc) · 1.5 KB
/
CI.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.3.2
# Restore and build
- name: Restore and build
run: msbuild src /t:Restore,Build /p:Configuration=$env:Configuration /p:DeployExtension=false
env:
Configuration: ${{ matrix.configuration }}
# Run unit tests
- name: Run unit tests
run: dotnet test --no-build test\ColumnGuideTests\ColumnGuideTests.csproj --configuration $env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# Upload the VSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
- name: Upload build artifact (VSIX)
uses: actions/upload-artifact@v4.3.0
with:
name: VSIX Package ${{ matrix.Configuration }}
path: src/VSIX/bin/**/*.vsix
- name: Upload build artifact (Dev 17 VSIX)
uses: actions/upload-artifact@v4.3.0
with:
name: VSIX Package ${{ matrix.Configuration }} Dev 17
path: src/VSIX_Dev17/bin/**/*.vsix