Skip to content

Commit

Permalink
Build & publishing fixes (#471)
Browse files Browse the repository at this point in the history
* Make AspectInjector executable

* Fix release workflow

  - Remove tag updage in the schema link of Allure.Reqnroll's
    allureConfig.json
  - Fix release notes link update
  - Provide just the URL as the release notes link

* Fix publishing

  - AspectInjector_Location being provided to a wrong step
  - Missing PackageId for specflow and xunit
  - Put PackageId if reqnroll on top
  - Remove extra publishing target leftover from xunit

* Remove unused xunit.runner.reporter ref

* Remove link to yet non-existent doc for reqnroll

* Set explicit permissions in labeler
  • Loading branch information
delatrie authored Mar 29, 2024
1 parent 4550d29 commit d9e3e0a
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@ jobs:
run: |
dotnet restore ${{ env.SOLUTION_PATH }}
# Use AspectInjector 2.8.2 which, unlike 2.8.1, correctly sets PdbChecksum
# The only reason we're still referencing 2.8.1 from projects is that
# 2.8.2 doesn't work well on Mac OS ARM
- name: 'Build project using dotnet'
run: |
dotnet build ${{ env.SOLUTION_PATH }}\
--no-restore\
--configuration ${{ env.BUILD_CONFIGURATION }}\
-p:ContinuousIntegrationBuild=true
-p:ContinuousIntegrationBuild=true\
"-p:AspectInjector_Location=${{ github.workspace }}/build/AspectInjector/linux-x64/AspectInjector"
# Use AspectInjector 2.8.2 which, unlike 2.8.1, correctly sets PdbChecksum
# The only reason we're' still referencing 2.8.1 from projects is that
# 2.8.2 doesn't work well on Mac OS ARM
- name: 'Pack project'
run: |
dotnet pack ${{ env.SOLUTION_PATH }}\
--no-restore\
--no-build\
--configuration ${{ env.BUILD_CONFIGURATION }}\
"-p:PackageOutputPath=${{ github.workspace }}/${{ env.PACKAGE_OUTPUT_PATH }}"\
"-p:AspectInjector_Location=${{ github.workspace }}/build/AspectInjector/linux-x64"
"-p:PackageOutputPath=${{ github.workspace }}/${{ env.PACKAGE_OUTPUT_PATH }}"
- name: 'NuGet publish'
run: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@ jobs:
cat ./Allure.Reqnroll/allureConfig.Template.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.Reqnroll.Tests.Samples/allureConfig.json
cat ./Allure.Reqnroll.Tests.Samples/allureConfig.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.Reqnroll.Tests/allureConfig.json
cat ./Allure.Reqnroll.Tests/allureConfig.json
- name: "Update release notes link"
run: |
sed -i -e '/<PackageReleaseNotes>/,/<\/PackageReleaseNotes>/ s|/allure-csharp/releases/tag/.*\.|/allure-csharp/releases/tag/${{ inputs.nextVersion }}.|g' ./Directory.Build.props
sed -i -e '/<PackageReleaseNotes>/,/<\/PackageReleaseNotes>/ s|/tag/[0-9a-zA-Z.|-]*|/tag/${{ inputs.release_version }}|g' ./Directory.Build.props
cat ./Directory.Build.props
- name: "Commit release version and create tag"
run: |
Expand Down
2 changes: 1 addition & 1 deletion Allure.Reqnroll/Allure.Reqnroll.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>Allure.Reqnroll</PackageId>
<AssemblyName>Allure.ReqnrollPlugin</AssemblyName>
<RootNamespace>Allure.ReqnrollPlugin</RootNamespace>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<PackageId>Allure.Reqnroll</PackageId>
<Authors>Maksim Stepanov</Authors>
<Description>Create beautiful reports from your Reqnroll tests.</Description>
<PackageIcon>Allure-Color.png</PackageIcon>
Expand Down
1 change: 1 addition & 0 deletions Allure.SpecFlow/Allure.SpecFlow.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>Allure.SpecFlow</PackageId>
<AssemblyName>Allure.SpecFlowPlugin</AssemblyName>
<RootNamespace>Allure.SpecFlowPlugin</RootNamespace>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Expand Down
7 changes: 2 additions & 5 deletions Allure.Xunit/Allure.Xunit.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>Allure.Xunit</PackageId>
<AssemblyName>Allure.Xunit.reporters</AssemblyName>
<RootNamespace>Allure.Xunit</RootNamespace>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<IsPackable>true</IsPackable>
<Authors>Shumakov Ivan</Authors>
Expand All @@ -10,10 +12,6 @@
<PackageTags>$(PackageTags) xunit</PackageTags>
</PropertyGroup>

<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);PackAllureXunitReportersFiles</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\" />
<None Include="./../img/Allure-X-Color.png" Pack="true" PackagePath="\" />
Expand All @@ -24,7 +22,6 @@
<PackageReference Include="xunit.runner.utility" Version="2.4.1" />
<PackageReference Include="xunit.assert" Version="2.4.1" />
<PackageReference Include="xunit.core" Version="2.4.1" />
<PackageReference Include="xunit.runner.reporters" Version="2.4.1" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageTags>allure</PackageTags>
<PackageReleaseNotes>See the release notes here: https://github.com/allure-framework/allure-csharp/releases/tag/2.11.0.</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/allure-framework/allure-csharp/releases/tag/2.11.0</PackageReleaseNotes>
</PropertyGroup>

<!-- Signing properties -->
Expand All @@ -40,7 +40,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<!-- Include LICENSE to all packages -->
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)LICENSE" Pack="true" PackagePath="\" />
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
| Package | Documentation | Author | Release |
|:-----------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------|:-----------------------------------------------------------------------------------------------------------:|
| [Allure.NUnit](Allure.NUnit) | [https://allurereport.org/docs/nunit/](https://allurereport.org/docs/nunit/) | [Nick Chursin](https://github.com/unickq) | [![Nuget](https://img.shields.io/nuget/v/Allure.NUnit)](https://www.nuget.org/packages/Allure.NUnit/) |
| [Allure.Reqnroll](Allure.Reqnroll) | [https://allurereport.org/docs/reqnroll/](https://allurereport.org/docs/reqnroll/) | Maksim Stepanov | [![Nuget](https://img.shields.io/nuget/v/Allure.Reqnroll)](https://www.nuget.org/packages/Allure.Reqnroll/) |
| [Allure.Reqnroll](Allure.Reqnroll) | In progress... | Maksim Stepanov | [![Nuget](https://img.shields.io/nuget/v/Allure.Reqnroll)](https://www.nuget.org/packages/Allure.Reqnroll/) |
| [Allure.SpecFlow](Allure.SpecFlow) | [https://allurereport.org/docs/specflow/](https://allurereport.org/docs/specflow/) | Alexander Bakanov | [![Nuget](https://img.shields.io/nuget/v/Allure.SpecFlow)](https://www.nuget.org/packages/Allure.SpecFlow/) |
| [Allure.Xunit](Allure.Xunit) | [https://allurereport.org/docs/xunit/](https://allurereport.org/docs/xunit/) | [Shumakov Ivan](https://github.com/IvanWR1995) | [![Nuget](https://img.shields.io/nuget/v/Allure.Xunit)](https://www.nuget.org/packages/Allure.Xunit/) |

Expand Down
Empty file modified build/AspectInjector/linux-x64/AspectInjector
100644 → 100755
Empty file.

0 comments on commit d9e3e0a

Please sign in to comment.