Skip to content
This repository was archived by the owner on Aug 19, 2023. It is now read-only.

Commit baf98b7

Browse files
authored
Merge pull request #14 from ChrisPulman/UpdateMQTT
2 parents 3767302 + 2f84efb commit baf98b7

File tree

5 files changed

+56
-35
lines changed

5 files changed

+56
-35
lines changed

.github/workflows/BuildOnly.yml

+27-10
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,48 @@
11
name: MQTTnet.Rx.Modbus CI-BuildOnly
22

33
on:
4-
push:
5-
branches: [ "main" ]
64
pull_request:
7-
branches: [ "main" ]
5+
branches: [ main ]
86

97
jobs:
10-
build-and-release:
8+
ci-build-and-test:
119

1210
runs-on: windows-2022
13-
11+
outputs:
12+
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
1413
steps:
14+
- name: Get Current Visual Studio Information
15+
shell: bash
16+
run: |
17+
dotnet tool update -g dotnet-vs
18+
echo "-- About RELEASE --"
19+
vs where release
20+
21+
- name: Update Visual Studio Latest Release
22+
shell: bash
23+
run: |
24+
echo "-- Update RELEASE --"
25+
vs update release Enterprise
26+
vs modify release Enterprise +mobile +desktop +uwp +web
27+
echo "-- About RELEASE Updated --"
28+
vs where release
29+
1530
- name: Checkout
1631
uses: actions/checkout@v3
1732
with:
1833
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
1934

2035
- name: Setup .NET
21-
uses: actions/setup-dotnet@v2
36+
uses: actions/setup-dotnet@v3
2237
with:
23-
dotnet-version: 6.0.x
38+
dotnet-version: |
39+
6.0.x
40+
7.0.x
2441
2542
- name: Add MSBuild to PATH
26-
uses: glennawatson/setup-msbuild@v1.0.3
43+
uses: microsoft/setup-msbuild@v1.1.3
2744
with:
28-
prerelease: true
45+
vs-prerelease: true
2946

3047
- name: NBGV
3148
id: nbgv
@@ -43,7 +60,7 @@ jobs:
4360
working-directory: src
4461

4562
- name: Run Unit Tests and Generate Coverage
46-
uses: glennawatson/coverlet-msbuild@v1
63+
uses: glennawatson/coverlet-msbuild@v2.1
4764
with:
4865
project-files: 'src/**/*Tests*.csproj'
4966
no-build: true

.github/workflows/dotnet.yml

+24-17
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,41 @@ jobs:
88
build-and-release:
99

1010
runs-on: windows-2022
11-
11+
outputs:
12+
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
1213
steps:
14+
- name: Get Current Visual Studio Information
15+
shell: bash
16+
run: |
17+
dotnet tool update -g dotnet-vs
18+
echo "-- About RELEASE --"
19+
vs where release
20+
21+
- name: Update Visual Studio Latest Release
22+
shell: bash
23+
run: |
24+
echo "-- Update RELEASE --"
25+
vs update release Enterprise
26+
vs modify release Enterprise +mobile +desktop +uwp +web
27+
echo "-- About RELEASE Updated --"
28+
vs where release
29+
1330
- name: Checkout
1431
uses: actions/checkout@v3
1532
with:
1633
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
1734

1835
- name: Setup .NET
19-
uses: actions/setup-dotnet@v2
36+
uses: actions/setup-dotnet@v3
2037
with:
21-
dotnet-version: 6.0.x
38+
dotnet-version: |
39+
6.0.x
40+
7.0.x
2241
2342
- name: Add MSBuild to PATH
24-
uses: glennawatson/setup-msbuild@v1.0.3
43+
uses: microsoft/setup-msbuild@v1.1.3
2544
with:
26-
prerelease: true
45+
vs-prerelease: true
2746

2847
- name: NBGV
2948
id: nbgv
@@ -40,18 +59,6 @@ jobs:
4059
run: msbuild /t:build,pack /nowarn:MSB4011 /maxcpucount /p:NoPackageAnalysis=true /verbosity:minimal /p:Configuration=Release MQTTnet.Rx.Modbus.sln
4160
working-directory: src
4261

43-
- name: Run Unit Tests and Generate Coverage
44-
uses: glennawatson/coverlet-msbuild@v1
45-
with:
46-
project-files: 'src/**/*Tests*.csproj'
47-
no-build: true
48-
include-filter: 'MQTTnet.Rx.Modbus*'
49-
output-format: cobertura
50-
configuration: Release
51-
52-
- name: Upload Code Coverage
53-
uses: codecov/codecov-action@v3
54-
5562
- name: Create NuGet Artifacts
5663
uses: actions/upload-artifact@master
5764
with:

Directory.Build.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
</ItemGroup>
4848

4949
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
50-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
50+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
5151
<PackageReference Include="xunit" Version="2.4.2" />
5252
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
5353
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5454
<PrivateAssets>all</PrivateAssets>
5555
</PackageReference>
56-
<PackageReference Include="Moq" Version="4.18.2" />
56+
<PackageReference Include="Moq" Version="4.18.4" />
5757
<PackageReference Include="coverlet.collector" Version="3.2.0">
5858
<PrivateAssets>all</PrivateAssets>
5959
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>

Version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "0.3",
3+
"version": "0.7",
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$",
66
"^refs/heads/main$"
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="ModbusRx" Version="0.8.0" />
11-
<PackageReference Include="MQTTnet.Rx.Client" Version="0.5.0" />
11+
<PackageReference Include="MQTTnet.Rx.Client" Version="0.7.0" />
1212
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
1313
</ItemGroup>
1414

15-
<ItemGroup>
16-
</ItemGroup>
17-
1815
</Project>

0 commit comments

Comments
 (0)