Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b46f7ca

Browse files
authored
Merge branch 'master' into fixes/tool-window-discoverability
2 parents d88f212 + 485c531 commit b46f7ca

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

.github/workflows/main.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
env:
6+
config: Release
7+
githubvsSolution: GitHubVS.sln
8+
vsixContainer: ${{ github.workspace }}\GitHub.VisualStudio.vsix
9+
10+
# Controls when the action will run. Triggers the workflow on push or pull request
11+
# events but only for the master branch
12+
on:
13+
push:
14+
branches: [ master ]
15+
pull_request:
16+
branches: [ master ]
17+
18+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
19+
jobs:
20+
# This workflow contains a single job called "build"
21+
build:
22+
# The type of runner that the job will run on
23+
runs-on: windows-latest
24+
25+
# Steps represent a sequence of tasks that will be executed as part of the job
26+
steps:
27+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+
- uses: actions/checkout@v1
29+
with:
30+
submodules: true
31+
32+
- name: Nerdbank.GitVersioning
33+
uses: aarnott/[email protected]
34+
id: nbgv
35+
36+
- name: Add MSBuild to PATH
37+
uses: microsoft/[email protected]
38+
39+
- uses: nuget/setup-nuget@v1
40+
with:
41+
nuget-version: '5.x'
42+
43+
- name: Add VSTest to PATH
44+
uses: darenm/Setup-VSTest@v1
45+
46+
- name: NuGet restore ${{ env.githubvsSolution }}
47+
run: nuget restore ${{ env.githubvsSolution }}
48+
49+
- name: MSBuild ${{ env.githubvsSolution }}
50+
run: |
51+
msbuild ${{ env.githubvsSolution }} /p:Configuration=${{ env.config }} /p:TargetVsixContainer=${{ env.vsixContainer }} /p:DeployExtension=False /p:GitHubVS_ClientId=${{ secrets.GitHubVS_ClientId }} /p:GitHubVS_ClientSecret=${{ secrets.GitHubVS_ClientSecret }}
52+
53+
- name: Upload VSIX artifact
54+
uses: actions/upload-artifact@v1
55+
with:
56+
name: GitHubVS-${{ steps.nbgv.outputs.SemVer2 }}
57+
path: ${{ env.vsixContainer }}
58+
59+
# We need to run '**\bin\**\*Tests.dll'
60+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.App.UnitTests\bin\${{ env.config }}\net46\GitHub.App.UnitTests.dll
61+
continue-on-error: true
62+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.Exports.Reactive.UnitTests\bin\${{ env.config }}\net46\GitHub.Exports.Reactive.UnitTests.dll
63+
continue-on-error: true
64+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.Exports.UnitTests\bin\${{ env.config }}\net46\GitHub.Exports.UnitTests.dll
65+
continue-on-error: true
66+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.Extensions.UnitTests\bin\${{ env.config }}\net46\GitHub.Extensions.UnitTests.dll
67+
continue-on-error: true
68+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.InlineReviews.UnitTests\bin\${{ env.config }}\net46\GitHub.InlineReviews.UnitTests.dll
69+
continue-on-error: true
70+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.Services.Vssdk.UnitTests\bin\${{ env.config }}\net461\GitHub.Services.Vssdk.UnitTests.dll
71+
continue-on-error: true
72+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.StartPage.UnitTests\bin\${{ env.config }}\net46\GitHub.StartPage.UnitTests.dll
73+
continue-on-error: true
74+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.TeamFoundation.UnitTests\bin\${{ env.config }}\net46\GitHub.TeamFoundation.UnitTests.dll
75+
continue-on-error: true
76+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.UI.UnitTests\bin\${{ env.config }}\net46\GitHub.UI.UnitTests.dll
77+
continue-on-error: true
78+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\GitHub.VisualStudio.UnitTests\bin\${{ env.config }}\net46\GitHub.VisualStudio.UnitTests.dll
79+
continue-on-error: true
80+
- run: vstest.console /TestAdapterPath:test /Settings:test\test.runsettings test\MetricsTests\MetricsTests\bin\${{ env.config }}\MetricsTests.dll
81+
continue-on-error: true

0 commit comments

Comments
 (0)