Skip to content

Commit dd1dce5

Browse files
authored
Merge pull request #1452 from bUnit-dev/release/v1.28
Release of new minor version v1.28
2 parents 2aaf01d + afadabd commit dd1dce5

File tree

49 files changed

+1115
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1115
-311
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-serve": {
6-
"version": "1.10.172",
6+
"version": "1.10.175",
77
"commands": [
88
"dotnet-serve"
99
]
1010
},
1111
"docfx": {
12-
"version": "2.75.3",
12+
"version": "2.76.0",
1313
"commands": [
1414
"docfx"
1515
]

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
dotnet pack src/bunit.web/ -c Release --output ${{ env.NUGET_DIRECTORY }} -p:ContinuousIntegrationBuild=true -p:publicrelease=true
7979
dotnet pack src/bunit.template/ -c Release --output ${{ env.NUGET_DIRECTORY }} -p:ContinuousIntegrationBuild=true -p:publicrelease=true
8080
dotnet pack src/bunit.generators/ -c release --output ${{ env.NUGET_DIRECTORY }} -p:ContinuousIntegrationBuild=true -p:publicrelease=true
81+
dotnet pack src/bunit.web.query/ -c release --output ${{ env.NUGET_DIRECTORY }} -p:ContinuousIntegrationBuild=true -p:publicrelease=true
8182
8283
# Publish the NuGet package as an artifact, so they can be used in the following jobs
8384
- uses: actions/upload-artifact@v4
@@ -235,9 +236,9 @@ jobs:
235236
- name: 📄 Build docs
236237
working-directory: ./docs/site
237238
run: |
238-
dotnet tool install --global docfx --version 2.74.1
239-
docfx metadata --logLevel error
240-
docfx build --logLevel warning --warningsAsErrors
239+
dotnet tool restore
240+
dotnet docfx metadata --logLevel error
241+
dotnet docfx build --logLevel warning --warningsAsErrors
241242
242243
dependency-review:
243244
runs-on: ubuntu-latest
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: rebase-v2-on-main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
workflow_dispatch:
9+
10+
env:
11+
TERM: xterm
12+
13+
jobs:
14+
rebase:
15+
name: 🎁 Rebase V2 on Main
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: 🛒 Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
token: ${{ secrets.BUNIT_BOT_TOKEN }}
24+
25+
- name: ⚙️ Import GPG key
26+
id: import_gpg
27+
uses: crazy-max/ghaction-import-gpg@v6
28+
with:
29+
gpg_private_key: ${{ secrets.BUNIT_BOT_GPG_PRIVATE_KEY }}
30+
passphrase: ${{ secrets.BUNIT_BOT_GPG_KEY_PASSPHRASE }}
31+
32+
- name: ⚙️ Setup CI GIT
33+
run: |
34+
git config user.name "${{ steps.import_gpg.outputs.name }}"
35+
git config user.email ${{ steps.import_gpg.outputs.email }}
36+
git config --global user.signingkey ${{ steps.import_gpg.outputs.keyid }}
37+
git config --global commit.gpgsign true
38+
39+
- name: ⏩ Rebase v2 on main, push to origin
40+
id: rebaseV2
41+
continue-on-error: true
42+
run: |
43+
git fetch --all
44+
git checkout v2
45+
git rebase -S main
46+
git push --force-with-lease
47+
48+
- name: ⏭ Create pull request
49+
if: steps.rebaseV2.outcome == 'failure'
50+
uses: thomaseizinger/[email protected]
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.BUNIT_BOT_TOKEN }}
53+
with:
54+
head: main
55+
base: v2
56+
title: Rebase v2 on main
57+
body: |
58+
This PR is created automatically by the bUnit bot.
59+
60+
When completing this PR, it's important to use **Rebase and merge** to keep the commit history clean.

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
9.0.x
6666
6767
- name: 🛠️ Update changelog
68-
uses: thomaseizinger/keep-a-changelog-new-release@2.0.0
68+
uses: thomaseizinger/keep-a-changelog-new-release@3.0.0
6969
with:
7070
version: ${{ env.NBGV_SemVer2 }}
7171

CHANGELOG.md

Lines changed: 223 additions & 214 deletions
Large diffs are not rendered by default.

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<!-- Shared code analyzers used for all projects in the solution -->
5353
<ItemGroup Label="Code Analyzers">
5454
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
55-
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.20.0.85982" PrivateAssets="All" />
55+
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495" PrivateAssets="All" />
5656
</ItemGroup>
5757

5858
<ItemGroup Label="Implicit usings"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ bUnit is available on NuGet in various incarnations. Most should just pick the [
3434
| [bUnit.web](https://www.nuget.org/packages/bunit.web/) | Adds support for testing Blazor components for the web. This includes bUnit.core. | [![Nuget](https://img.shields.io/nuget/dt/bunit.web?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit.web/) |
3535
| [bUnit.template](https://www.nuget.org/packages/bunit.template/) | Template, which currently creates xUnit-based bUnit test projects only. | [![Nuget](https://img.shields.io/nuget/dt/bunit.template?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit.template/) |
3636
| [bUnit.generators](https://www.nuget.org/packages/bunit.generators/)|Source code generators to minimize code setup in various situations.|[![Nuget](https://img.shields.io/nuget/dt/bunit.generators?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit.generators/)|
37+
| [bUnit.web.query](https://www.nuget.org/packages/bunit.web.query/)|bUnit implementation of testing-library.com's query APIs.|[![Nuget](https://img.shields.io/nuget/dt/bunit.web.query?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit.web.query/)|
3738

3839
To get started, head to the [getting started documentation](https://bunit.dev/docs/getting-started) to learn more.
3940

bunit.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".items", ".items", "{A5D7B6
99
.gitattributes = .gitattributes
1010
.gitignore = .gitignore
1111
Directory.Build.props = Directory.Build.props
12+
.config\dotnet-tools.json = .config\dotnet-tools.json
1213
global.json = global.json
1314
version.json = version.json
1415
EndProjectSection

docs/samples/.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ tab_size = 2
1717
indent_style = space
1818
indent_size = 2
1919
indent_width = 2
20+
2021
dotnet_diagnostic.BL0001.severity = none
2122
dotnet_diagnostic.BL0002.severity = none
2223
dotnet_diagnostic.BL0003.severity = none
2324
dotnet_diagnostic.BL0004.severity = none
2425
dotnet_diagnostic.BL0005.severity = none
25-
dotnet_diagnostic.BL0006.severity = none
26+
dotnet_diagnostic.BL0006.severity = none
27+
dotnet_diagnostic.BL0007.severity = none

docs/samples/components/bunit.docs.samples.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
5-
<LangVersion>10.0</LangVersion>
4+
<TargetFrameworks>netstandard2.0;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
5+
<LangVersion>latest</LangVersion>
66
<RazorLangVersion>3.0</RazorLangVersion>
77
<RootNamespace>Bunit.Docs.Samples</RootNamespace>
88
<ImplicitUsings>enable</ImplicitUsings>
@@ -50,4 +50,12 @@
5050
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="8.0.0" />
5151
</ItemGroup>
5252

53+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
54+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0-*" />
55+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0-*" />
56+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="9.0.0-*" />
57+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0-*" />
58+
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.0-*" />
59+
</ItemGroup>
60+
5361
</Project>

0 commit comments

Comments
 (0)