-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.25 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
45
46
47
48
49
50
51
name: validation build
on:
pull_request:
branches: [ "main" ]
types: [ opened, synchronize ]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Run NuGet validation (versions and release notes)
- name: Validate csproj changes
run: |
chmod +x .github/scripts/validate_csproj.sh
./.github/scripts/validate_csproj.sh
env:
SOURCE_BRANCH: ${{ github.event.pull_request.head.ref }}
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
CSPROJ_PATH: ${{ vars.CSPROJ_PATH }}
build:
runs-on: windows-2019
needs: [ validate ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ vars.DOTNET_VERSION }}
- name: Install LocalDb
run: |
choco install mssqlserver2014-sqllocaldb
powershell -Command "Set-ExecutionPolicy Bypass"
- name: Restore dependencies
run: dotnet restore
- name: Build solution
run: dotnet build
- name: Test with System.Data.SqlClient
run: dotnet test -c SystemDataSqlClient
- name: Test with Microsoft.Data.SqlClient
run: dotnet test -c MicrosoftDataSqlClient