Adding GitVersion and PR YAML updates
This commit is contained in:
Родитель
b66d6356db
Коммит
8e9f45c47a
|
@ -1,3 +1,5 @@
|
|||
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
||||
|
||||
name: GitHub Actions Demo
|
||||
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
|
||||
on: [push]
|
||||
|
@ -10,6 +12,19 @@ jobs:
|
|||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Disable StrongName
|
||||
shell: pwsh
|
||||
run: |
|
||||
scripts/DisableStrongName.ps1
|
||||
- name: Setup .NET 8.x
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
# Semantic version range syntax or exact version of a dotnet version
|
||||
dotnet-version: '8.x'
|
||||
# - name: Install dependencies
|
||||
# run: dotnet restore dirs.proj
|
||||
# - name: Build
|
||||
# run: dotnet build dirs.proj
|
||||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
- name: List files in the repository
|
||||
|
|
|
@ -27,13 +27,6 @@ Licensed under the MIT License.
|
|||
<Company>Microsoft Corporation</Company>
|
||||
<Copyright>Copyright (c) Microsoft Corporation. All rights reserved.</Copyright>
|
||||
|
||||
<!-- Versioning -->
|
||||
<Version Condition="'$(Version)' == ''">1.2.0</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<PackageVersion>$(Version)</PackageVersion>
|
||||
<FileVersion>$(Version)</FileVersion>
|
||||
<InformationalVersion>$(Version)</InformationalVersion>
|
||||
|
||||
<!-- Packaging -->
|
||||
<Authors>Microsoft Corporation</Authors>
|
||||
<PackageLicenseUrl>https://github.com/Microsoft/powerbi-powershell/blob/master/LICENSE</PackageLicenseUrl>
|
||||
|
@ -49,15 +42,16 @@ Licensed under the MIT License.
|
|||
<PropertyGroup>
|
||||
<SlnGenLaunchVisualStudio>true</SlnGenLaunchVisualStudio>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SlnGen" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Versioning -->
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="$(RepoTargets)Microsoft.PowerBI.CodeSign.targets" Condition="'$(NoSignTarget)' != 'true' AND '$(MSBuildProjectFile)' != 'dirs.proj'" />
|
||||
|
||||
<Import Project="$(RepoTargets)Microsoft.PowerBI.Build.targets" Condition="'$(NoBuildTarget)' != 'true' AND '$(MSBuildProjectFile)' != 'dirs.proj'" />
|
||||
|
||||
<Import Project="$(RepoTargets)Microsoft.PowerBI.Packaging.targets" Condition="'$(NoPackageTarget)' != 'true' AND '$(MSBuildProjectFile)' != 'dirs.proj'" />
|
||||
|
||||
</Project>
|
|
@ -25,5 +25,6 @@
|
|||
<PackageVersion Include="Moq" Version="4.8.2" />
|
||||
<PackageVersion Include="platyPS" Version="0.9.0" />
|
||||
<PackageVersion Include="SlnGen" Version="2.2.30" />
|
||||
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.6.133" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
|
||||
"version": "1.3",
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/master$",
|
||||
"^refs/heads/v\\d+(?:\\.\\d+)?$"
|
||||
],
|
||||
"cloudBuild": {
|
||||
"buildNumber": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче