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

Commit c10e7f8

Browse files
authored
Merge branch 'master' into fixes/remove-experimental-PR-file-margin
2 parents a7d09a5 + e566b09 commit c10e7f8

File tree

3 files changed

+89
-2
lines changed

3 files changed

+89
-2
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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@ Visit the [Contributor Guidelines](CONTRIBUTING.md) for details on how to contri
7272
Copyright 2015 - 2019 GitHub, Inc.
7373

7474
Licensed under the [MIT License](LICENSE.md)
75-

src/GitHub.Api/GitHub.Api.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
<DebugType>full</DebugType>
55
<DebugSymbols>true</DebugSymbols>
66
</PropertyGroup>
7-
7+
8+
<PropertyGroup>
9+
<!-- Use a default client ID/secret for testing -->
10+
<!-- https://github.com/organizations/editor-tools/settings/applications/620133 -->
11+
<GitHubVS_ClientId Condition="'$(GitHubVS_ClientId)' == ''">2454a3e6102fd41cc212</GitHubVS_ClientId>
12+
<GitHubVS_ClientSecret Condition="'$(GitHubVS_ClientSecret)' == ''">2157c138e970165d955d09562230afcfbcda23f2</GitHubVS_ClientSecret>
13+
</PropertyGroup>
14+
815
<Import Project="$(SolutionDir)\src\common\signing.props" />
916

1017
<Target Name="AddClientSecret" BeforeTargets="BeforeCompile"

0 commit comments

Comments
 (0)