-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1571 from bUnit-dev/release/v1.32
Release of new minor version v1.32
- Loading branch information
Showing
59 changed files
with
721 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ jobs: | |
- name: ⚙️ Setup GIT versioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
with: | ||
setAllVars: true | ||
|
||
|
@@ -68,7 +69,7 @@ jobs: | |
with: | ||
files: '["docs/site/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj", "src/Directory.Build.props"]' | ||
env: | ||
RELEASE_VERSION: ${{ env.NBGV_SimpleVersion }}${{ env.NBGV_PrereleaseVersion }} | ||
RELEASE_VERSION: ${{ steps.nbgv.outputs.SimpleVersion }}${{ steps.nbgv.outputs.PrereleaseVersion }} | ||
RELEASE_NOTES: ${{ steps.changelog_reader.outputs.changes }} | ||
|
||
# Create the NuGet package in the folder from the environment variable NuGetDirectory | ||
|
@@ -136,20 +137,25 @@ jobs: | |
8.0.x | ||
9.0.x | ||
- name: ⚙️ Restore packages and tools | ||
run: | | ||
dotnet restore | ||
dotnet tool restore | ||
- name: 🧪 Run unit tests | ||
run: dotnet test -c release -p:VSTestUseMSBuildOutput=false | ||
run: dotnet test -c release --no-restore | ||
|
||
- name: 📛 Upload hang- and crash-dumps on test failure | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: ignore | ||
name: test-dumps | ||
path: | | ||
**/*hangdump.dmp | ||
**/*crashdump.dmp | ||
**/*.dmp | ||
**/*.dmp | ||
validate_template: | ||
validate-template: | ||
runs-on: ubuntu-latest | ||
needs: [ create-nuget ] | ||
steps: | ||
|
@@ -178,20 +184,23 @@ jobs: | |
run: | | ||
dotnet new bunit --no-restore -o ${{ github.workspace }}/TemplateTestXunit | ||
echo '<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></Project>' >> ${{ github.workspace }}/TemplateTestXunit/Directory.Build.props | ||
echo '<Project><PropertyGroup><ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally></PropertyGroup></Project>' >> ${{ github.workspace }}/TemplateTestXunit/Directory.Packages.props | ||
dotnet restore ${{ github.workspace }}/TemplateTestXunit --source https://api.nuget.org/v3/index.json --source ${{ env.NUGET_DIRECTORY }} | ||
dotnet test ${{ github.workspace }}/TemplateTestXunit | ||
- name: ✔ Verify NUnit template | ||
run: | | ||
dotnet new bunit --framework nunit --no-restore -o ${{ github.workspace }}/TemplateTestNunit | ||
echo '<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></Project>' >> ${{ github.workspace }}/TemplateTestNunit/Directory.Build.props | ||
echo '<Project><PropertyGroup><ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally></PropertyGroup></Project>' >> ${{ github.workspace }}/TemplateTestNunit/Directory.Packages.props | ||
dotnet restore ${{ github.workspace }}/TemplateTestNunit --source https://api.nuget.org/v3/index.json --source ${{ env.NUGET_DIRECTORY }} | ||
dotnet test ${{ github.workspace }}/TemplateTestNunit | ||
- name: ✔ Verify MSTest template | ||
run: | | ||
dotnet new bunit --framework mstest --no-restore -o ${{ github.workspace }}/TemplateTestMstest | ||
echo '<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></Project>' >> ${{ github.workspace }}/TemplateTestMstest/Directory.Build.props | ||
echo '<Project><PropertyGroup><ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally></PropertyGroup></Project>' >> ${{ github.workspace }}/TemplateTestMstest/Directory.Packages.props | ||
dotnet restore ${{ github.workspace }}/TemplateTestMstest --source https://api.nuget.org/v3/index.json --source ${{ env.NUGET_DIRECTORY }} | ||
dotnet test ${{ github.workspace }}/TemplateTestMstest | ||
|
@@ -216,15 +225,23 @@ jobs: | |
- name: ⚙️ Setup GIT versioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
with: | ||
setAllVars: true | ||
|
||
- name: 🛠️ Get Changelog Entry | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: Unreleased | ||
path: ./CHANGELOG.md | ||
|
||
- name: 🍥 Replace tokens in files | ||
uses: cschleiden/replace-tokens@v1 | ||
with: | ||
files: '["docs/site/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj", "src/Directory.Build.props", "docs/site/docfx.json"]' | ||
env: | ||
RELEASE_VERSION: ${{ env.NBGV_SimpleVersion }}${{ env.NBGV_PrereleaseVersion }} | ||
RELEASE_VERSION: ${{ steps.nbgv.outputs.SimpleVersion }}${{ steps.nbgv.outputs.PrereleaseVersion }} | ||
RELEASE_NOTES: ${{ steps.changelog_reader.outputs.changes }} | ||
|
||
- name: 📄 Build bUnit | ||
|
@@ -254,7 +271,7 @@ jobs: | |
release-preview: | ||
if: github.event_name == 'workflow_dispatch' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2') | ||
runs-on: ubuntu-latest | ||
needs: [ validate-nuget, run-test, validate_template, validate-docs ] | ||
needs: [ validate-nuget, run-test, validate-template, validate-docs ] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ jobs: | |
- name: ⚙️ Setup GIT versioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
with: | ||
setAllVars: true | ||
|
||
|
@@ -60,10 +61,10 @@ jobs: | |
with: | ||
path: ./CHANGELOG.md | ||
|
||
- name: 🛠️ Update tokens in project files | ||
- name: 🛠️ Update tokens in files | ||
uses: cschleiden/replace-tokens@v1 | ||
with: | ||
files: '["docs/site/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj", "src/Directory.Build.props"]' | ||
files: '["docs/site/*.md", "docs/**/*.md", "docs/**/docfx.json", "*.csproj", "**/*.csproj", "src/Directory.Build.props"]' | ||
env: | ||
RELEASE_VERSION: ${{ steps.changelog_reader.outputs.version }} | ||
RELEASE_NOTES: ${{ steps.changelog_reader.outputs.changes }} | ||
|
@@ -123,9 +124,8 @@ jobs: | |
- name: ⏭ Create pull request from stable to main when direct merge fails | ||
if: steps.mergeMainline.outcome == 'failure' | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
with: | ||
github_token: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
head: stable | ||
base: main | ||
title: Update main with documentation in stable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,12 @@ jobs: | |
version: Unreleased | ||
path: ./CHANGELOG.md | ||
|
||
- name: ⚙️ Setup GIT versioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
with: | ||
setAllVars: true | ||
|
||
- name: ☑ Check that release contains changes | ||
if: steps.changelog_reader.outputs.changes == '' | ||
run: | | ||
|
@@ -85,12 +91,11 @@ jobs: | |
|
||
- name: ⏭ Create pull request for release branch | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
with: | ||
head: release/v${{ env.NBGV_MajorMinorVersion }} | ||
github_token: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
head: release/v${{ steps.nbgv.outputs.MajorMinorVersion }} | ||
base: stable | ||
title: Release of new ${{ github.event.inputs.versionIncrement }} version v${{ env.NBGV_MajorMinorVersion }} | ||
title: Release of new ${{ github.event.inputs.versionIncrement }} version v${{ steps.nbgv.outputs.MajorMinorVersion }} | ||
body: | | ||
This PR was created in response to a manual trigger of the [prepare-release workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,9 +48,8 @@ jobs: | |
- name: ⏭ Create pull request | ||
if: steps.rebaseV2.outcome == 'failure' | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
with: | ||
github_token: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
head: main | ||
base: v2 | ||
title: Rebase v2 on main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ jobs: | |
- name: ⚙️ Setup GIT versioning | ||
uses: dotnet/[email protected] | ||
id: nbgv | ||
with: | ||
setAllVars: true | ||
|
||
|
@@ -67,7 +68,7 @@ jobs: | |
- name: 🛠️ Update changelog | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
version: ${{ env.NBGV_SemVer2 }} | ||
version: ${{ steps.nbgv.outputs.SemVer2 }} | ||
|
||
- name: 🛠️ Update changelog compare URLs | ||
shell: bash | ||
|
@@ -78,22 +79,22 @@ jobs: | |
- name: 🛠️ Commit CHANGELOG.md to stable branch | ||
run: | | ||
git add CHANGELOG.md | ||
git commit -S -m "Updated CHANGELOG.md for ${{ env.NBGV_SimpleVersion }} release" | ||
git commit -S -m "Updated CHANGELOG.md for ${{ steps.nbgv.outputs.SimpleVersion }} release" | ||
echo "RELEASE_COMMIT_HASH=$(git rev-parse stable)" >> $GITHUB_ENV | ||
- name: 🛠️ Get Changelog Entry | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: ${{ env.NBGV_SemVer2 }} | ||
version: ${{ steps.nbgv.outputs.SemVer2 }} | ||
path: ./CHANGELOG.md | ||
|
||
- name: 🛠️ Update tokens in project files | ||
uses: cschleiden/replace-tokens@v1 | ||
with: | ||
files: '["docs/site/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj", "src/Directory.Build.props"]' | ||
env: | ||
RELEASE_VERSION: ${{ env.NBGV_NuGetPackageVersion }} | ||
RELEASE_VERSION: ${{ steps.nbgv.outputs.NuGetPackageVersion }} | ||
RELEASE_NOTES: ${{ steps.changelog_reader.outputs.changes }} | ||
|
||
- name: 🛠️ Packing library in release mode | ||
|
@@ -111,16 +112,15 @@ jobs: | |
run: git push origin stable | ||
|
||
- name: 🛠️ Create GitHub release | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
tag_name: v${{ env.NBGV_SemVer2 }} | ||
tag_name: v${{ steps.nbgv.outputs.SemVer2 }} | ||
target_commitish: ${{ env.RELEASE_COMMIT_HASH }} | ||
name: ${{ env.NBGV_SemVer2 }} | ||
name: ${{ steps.nbgv.outputs.SemVer2 }} | ||
body: ${{ steps.changelog_reader.outputs.changes }} | ||
draft: false | ||
prerelease: ${{ env.NBGV_PublicRelease == 'False' }} | ||
prerelease: ${{ steps.nbgv.outputs.PublicRelease == 'False' }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: ⏩ Merge stable with main, push to origin | ||
id: mergeMainline | ||
|
@@ -133,12 +133,11 @@ jobs: | |
- name: ⏭ Create pull request from stable to main when direct merge fails | ||
if: steps.mergeMainline.outcome == 'failure' | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
with: | ||
github_token: ${{ secrets.BUNIT_BOT_TOKEN }} | ||
head: stable | ||
base: main | ||
title: Update main with changes in stable after v${{ env.NBGV_SemVer2 }} release | ||
title: Update main with changes in stable after v${{ steps.nbgv.outputs.SemVer2 }} release | ||
reviewers: ${{ github.actor }} # By default, we request a review from the person who triggered the workflow. | ||
body: | | ||
Hi @${{ github.actor }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.