Skip to content

Commit

Permalink
Enable ContinuousIntegrationBuild
Browse files Browse the repository at this point in the history
ContinuousIntegrationBuild seems defunct for webforms although reported
MSBuild version is 17.4.1.60106

Centralize version.txt
  • Loading branch information
toniarnold committed Jan 26, 2023
1 parent 2e4d268 commit 92e077c
Show file tree
Hide file tree
Showing 18 changed files with 81 additions and 32 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/libs-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ jobs:
release:
needs: [build-core, build-webforms]
uses: ./.github/workflows/libs-release.yml
with:
version: v0.2.1
secrets:
nuget_api_key: ${{ secrets.NUGET_API }}
16 changes: 8 additions & 8 deletions .github/workflows/libs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Release Libraries

on:
workflow_call:
inputs:
version:
description: 'version tag name for the GitHub release'
required: true
type: string
secrets:
nuget_api_key:
description: 'nuget.org API key'
Expand Down Expand Up @@ -43,10 +38,15 @@ jobs:
nuget-api-key: ${{ secrets.nuget_api_key }}
- name: Publish NuGet packages to nuget.org
run: nuget push -Source https://api.nuget.org/v3/index.json '${{ github.workspace }}\packages\*.nupkg' -SkipDuplicate
- name: Create GitHub release ${{ inputs.version }}
- name: Get version.txt
shell: pwsh
run: |
$version = Get-Content ${{ github.workspace }}/nuget-info/version.txt
echo "version=$version" >> $Env:GITHUB_ENV
- name: Create GitHub release "v${{ env.version }}"
uses: ncipollo/release-action@v1
with:
commit: master
tag: ${{ inputs.version }}
tag: "v${{ env.version }}"
artifacts: "${{ github.workspace }}/packages/*.nupkg"
bodyFile: "${{ github.workspace }}/.github/workflows/release.md"
bodyFile: "${{ github.workspace }}/nuget-info/release-notes.txt"
14 changes: 4 additions & 10 deletions .github/workflows/sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ jobs:
try:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get version.txt
shell: pwsh
run: |
$version = Get-Content ${{ github.workspace }}/nuget-info/version.txt
echo "version=$version" >> $GITHUB_ENV
- name: Use version.txt
run: echo ">${{ env.version }}<"
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: view version
run: msbuild --version
14 changes: 7 additions & 7 deletions nuget-info/release-notes.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
* Add Source Link to all NuGet packages

* Fix race condition in the PersistentMainFactory due to the static cache
* Fix issue #5 race condition in the PersistentMainFactory due to the static cache
by setting up an identifying Request Correlation Guid in _Host.cshtml according to
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/additional-scenarios?view=aspnetcore-6.0#pass-tokens-to-a-blazor-server-app

* Deprecate the 'Component' accessor in favor of 'Cut' as in
https://learn.microsoft.com/en-us/aspnet/core/blazor/test

* Set Selenium RequestTimeout default to 1 if not configured
* Set Selenium RequestTimeout default to 1 sec if not configured

* Blazor Test Navigate() and Refresh() as in Click() with numeric expectRenders
* Blazor synchronization in Navigate() and Refresh() with the same argumenrs as Click() with numeric expectRenders
instead of bool expectRender (breaking change)

* Support the ?clear=true GET argument to clear browser storage also for Blazor
* Support the ?clear=true GET argument to clear browser storage also in Blazor

* Internet Explorer has been forcibly disabled by Microsoft, thus remove it from old tests.

* Internet Explorer has been forcibly disabled by Microsoft, thus removed it from old tests.
* Add Source Link to the NuGet packages
2 changes: 1 addition & 1 deletion src/apicaller.core/apicaller.core.nuget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="aspnettest.asplib.core" Version="$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../nuget-info/version.txt"))" />
<PackageReference Include="aspnettest.asplib.core" Version="$([System.IO.File]::ReadAllText('$(MSBuildProjectDirectory)/../../nuget-info/version.txt'))" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/apiservice.core/apiservice.core.nuget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="aspnettest.asplib.core" Version="$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../nuget-info/version.txt"))" />
<PackageReference Include="aspnettest.asplib.core" Version="$([System.IO.File]::ReadAllText('$(MSBuildProjectDirectory)/../../nuget-info/version.txt'))" />
</ItemGroup>

<!-- Don't require the SMC code generator Makefile project dependency when /p:noSmc=true -->
Expand Down
2 changes: 1 addition & 1 deletion src/apitest.core/apitest.core.nuget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="aspnettest.asplib.core" Version="$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../nuget-info/version.txt"))" />
<PackageReference Include="aspnettest.asplib.core" Version="$([System.IO.File]::ReadAllText('$(MSBuildProjectDirectory)/../../nuget-info/version.txt'))" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.13" />
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1">
Expand Down
4 changes: 4 additions & 0 deletions src/asplib.blazor/asplib.blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/asplib.core/asplib.core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.13" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.13" />
Expand Down
3 changes: 3 additions & 0 deletions src/asplib.webforms/asplib.webforms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
Expand Down
4 changes: 4 additions & 0 deletions src/asplib.websharper/asplib.websharper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FSharp.Core" Version="6.0.7" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
Expand Down
4 changes: 4 additions & 0 deletions src/asplib/asplib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 4 additions & 0 deletions src/iselenium.blazor/iselenium.blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/iselenium.core/iselenium.core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
3 changes: 3 additions & 0 deletions src/iselenium.webforms/iselenium.webforms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
Expand Down
4 changes: 4 additions & 0 deletions src/iselenium.websharper/iselenium.websharper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 4 additions & 0 deletions src/iselenium/iselenium.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
23 changes: 21 additions & 2 deletions src/smc/smc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@

<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

</PropertyGroup>

<PropertyGroup>
<!-- Source Link -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit 92e077c

Please sign in to comment.