Add pr validation workflow (#33) · WiseTechGlobal/SqlScriptDOM@01e027b · GitHub
Skip to content

Commit 01e027b

Browse files
barbaravaldezllali
andauthored
Add pr validation workflow (microsoft#33)
* Importing signing properties only in test and source --------- Co-authored-by: Leila Lali <llali@microsoft.com>
1 parent ed4d0db commit 01e027b

6 files changed

Lines changed: 23 additions & 4 deletions

File tree

‎.build/Signing.props‎

Lines changed: 1 addition & 1 deletion
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: pr-validation
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-dotnet@v2
14+
with:
15+
global-json-file: global.json
16+
- name: Install dependencies
17+
run: dotnet restore
18+
- name: Build
19+
run: dotnet build dirs.proj

‎Directory.Build.props‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,4 @@
5858
</PropertyGroup>
5959

6060
<Import Project="$(BuildPropsDir)\AssemblyInfo.props" />
61-
<Import Project="$(BuildPropsDir)\Signing.props" />
6261
</Project>

‎SqlScriptDom/Microsoft.SqlServer.TransactSql.ScriptDom.csproj‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="GenerateFiles.props" />
3+
<Import Project="$(EnlistmentRoot)\.build\Signing.props" />
34
<PropertyGroup>
45
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
56
</PropertyGroup>

‎Test/Directory.Build.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@
4747
<DebugType>full</DebugType>
4848
<DebugSymbols>true</DebugSymbols>
4949
</PropertyGroup>
50-
50+
<Import Project="$(EnlistmentRoot)\.build\Signing.props" />
5151
</Project>

‎tools/Directory.Build.props‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)