Skip to content

Bump Microsoft.Data.SqlClient from 5.1.5 to 5.2.1 in /src #115

Bump Microsoft.Data.SqlClient from 5.1.5 to 5.2.1 in /src

Bump Microsoft.Data.SqlClient from 5.1.5 to 5.2.1 in /src #115

# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
name: Pkg EdFi.Db.Deploy
on:
pull_request:
branches: [main, ODS-*]
push:
branches: [main, ODS-*]
workflow_dispatch:
permissions: read-all
env:
INFORMATIONAL_VERSION: "4.1"
BUILD_INCREMENTER: "-39"
CONFIGURATION: "Release"
CURRENT_BRANCH: ${{ GITHUB.REF_NAME }}
AZURE_ARTIFACT_URL: "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json"
AZURE_ARTIFACT_NUGET_KEY: ${{ secrets.AZURE_ARTIFACTS_PERSONAL_ACCESS_TOKEN }}
VSS_NUGET_EXTERNAL_FEED_ENDPOINTS : '{"endpointCredentials": [{"endpoint": "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json","password": "${{ secrets.AZURE_ARTIFACTS_PERSONAL_ACCESS_TOKEN }}"}]}'
HEAD_REF: ${{ GITHUB.HEAD_REF }}
REF_NAME: ${{ GITHUB.REF_NAME }}
REPOSITORY_DISPATCH_BRANCH: ${{ github.event.client_payload.branch }}
REPOSITORY_OWNER: ${{ GITHUB.REPOSITORY_OWNER }}
jobs:
build:
runs-on: windows-latest
steps:
- name: Check for Azure Token
if: ${{ env.REPOSITORY_OWNER == 'Ed-Fi-Alliance-OSS' && env.AZURE_ARTIFACT_NUGET_KEY == '' }}
run: |
echo "::error::Missing Azure Token"
exit 1
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout Ed-Fi-Databases
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
with:
repository: Ed-Fi-Alliance-OSS/Ed-Fi-Databases
path: Ed-Fi-Databases/
- name: Checkout Ed-Fi-ODS-Implementation
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
with:
repository: Ed-Fi-Alliance-OSS/Ed-Fi-ODS-Implementation
path: Ed-Fi-ODS-Implementation/
- name: Is pull request branch exists in Ed-Fi-ODS-Implementation
working-directory: ./Ed-Fi-Databases/
shell: pwsh
run: |
.\build.githubactions.ps1 CheckoutBranch -RelativeRepoPath "../Ed-Fi-ODS-Implementation"
- name: Checkout Ed-Fi-ODS
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
with:
repository: Ed-Fi-Alliance-OSS/Ed-Fi-ODS
path: Ed-Fi-ODS/
- name: Is pull request branch exists in Ed-Fi-ODS
working-directory: ./Ed-Fi-Databases/
shell: pwsh
run: |
.\build.githubactions.ps1 CheckoutBranch -RelativeRepoPath "../Ed-Fi-ODS"
- name: Restore
working-directory: ./Ed-Fi-Databases/
run: |
.\build.githubactions.ps1 Restore -Solution "$env:GITHUB_WORKSPACE/Ed-Fi-Databases/src/EdFi.Db.Deploy.sln"
shell: pwsh
- name: Build
working-directory: ./Ed-Fi-Databases/
run: |
.\build.githubactions.ps1 Build -Configuration ${{ env.CONFIGURATION }} -InformationalVersion ${{ env.INFORMATIONAL_VERSION}} -BuildCounter ${{ github.run_number }} -BuildIncrementer ${{env.BUILD_INCREMENTER}} -Solution "$env:GITHUB_WORKSPACE/Ed-Fi-Databases/src/EdFi.Db.Deploy.sln"
shell: pwsh
- name: unit tests
working-directory: ./Ed-Fi-Databases/
run: |
$ErrorActionPreference = 'Stop'
$solution = "$env:GITHUB_WORKSPACE/Ed-Fi-Databases/src/EdFi.Db.Deploy.sln"
$reports = "$env:GITHUB_WORKSPACE\Ed-Fi-ODS-Implementation\reports\"
if (Test-Path $reports) {
Remove-Item -Path $reports -Force -Recurse | Out-Null
}
New-Item -ItemType Directory -Force -Path $reports | Out-Null
$reportName = $reports + "EdFi.Db.Deploy.xml"
.\build.githubactions.ps1 Test -Configuration ${{ env.CONFIGURATION }} -TestFilter "LocalOnly" -LoggerReportName $reportName -InformationalVersion ${{ env.INFORMATIONAL_VERSION}} -BuildCounter ${{ github.run_number }} -BuildIncrementer ${{env.BUILD_INCREMENTER}} -Solution "$env:GITHUB_WORKSPACE/Ed-Fi-Databases/src/EdFi.Db.Deploy.sln"
shell: pwsh
- name: pack
working-directory: ./Ed-Fi-Databases/
shell: pwsh
run: |
.\build.githubactions.ps1 pack -Configuration ${{ env.CONFIGURATION }} -InformationalVersion ${{ env.INFORMATIONAL_VERSION}} -BuildCounter ${{ github.run_number }} -BuildIncrementer ${{env.BUILD_INCREMENTER}} -PackageName "EdFi.Suite3.Db.Deploy" -ProjectFile "$env:GITHUB_WORKSPACE/Ed-Fi-Databases/src/EdFi.Db.Deploy/EdFi.Db.Deploy.csproj"
- name: Install-credential-handler
if: ${{ env.AZURE_ARTIFACT_NUGET_KEY != '' && github.event_name == 'workflow_dispatch' }}
working-directory: ./Ed-Fi-Databases/
run: |
.\build.githubactions.ps1 InstallCredentialHandler
shell: pwsh
- name: publish
if: ${{ env.AZURE_ARTIFACT_NUGET_KEY != '' && github.event_name == 'workflow_dispatch' }}
working-directory: ./Ed-Fi-Databases/
shell: pwsh
run: |
.\build.githubactions.ps1 publish -InformationalVersion ${{ env.INFORMATIONAL_VERSION }} -BuildCounter ${{ github.run_number }} -BuildIncrementer ${{env.BUILD_INCREMENTER}} -NuGetApiKey ${{ env.AZURE_ARTIFACT_NUGET_KEY }} -EdFiNuGetFeed ${{env.AZURE_ARTIFACT_URL}} -ProjectFile "$env:GITHUB_WORKSPACE/Ed-Fi-Databases/src/EdFi.Db.Deploy/EdFi.Db.Deploy.csproj" -PackageName "EdFi.Suite3.Db.Deploy"
- name: Upload EdFi.Db.Deploy Artifact
if: success()
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
with:
name: EdFi.Db.Deploy.Artifacts
path: |
${{ github.workspace }}/Ed-Fi-Databases/NugetPackages/EdFi.Suite3.Db.Deploy*.*
${{ github.workspace }}/Ed-Fi-ODS-Implementation/reports/EdFi.Db.Deploy.xml