-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade packages #46
Upgrade packages #46
Changes from all commits
ff74302
805c627
9c586df
29551bf
161c0af
1b300ae
32f0e74
49bde18
52dcc83
cf0044c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
|
||
jobs: | ||
build-and-test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build solution | ||
run: dotnet build --configuration Release --no-restore | ||
|
||
- name: Run tests | ||
run: dotnet test --configuration Release --no-build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Dynamic; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Net.Sockets; | ||
using System.Reflection; | ||
using System.Reflection.Metadata.Ecma335; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using FluentAssertions; | ||
using Newtonsoft.Json; | ||
using Serilog.Formatting; | ||
using Serilog.Formatting.Raw; | ||
using Serilog.Formatting.Compact; | ||
using Serilog.Sinks.Network.Formatters; | ||
using Xunit; | ||
|
||
|
@@ -59,11 +51,11 @@ public void CanLogHelloWorld_WithDefaultFormatter() | |
[Fact] | ||
public void CanLogHelloWorld_WithRawFormatter() | ||
{ | ||
ConfigureTestLogger(new RawFormatter()); | ||
var arbitraryMessage = nameof(WhenLoggingViaTCP) + "CanLogHelloWorld_WithRawFormatter" + Guid.NewGuid(); | ||
ConfigureTestLogger(new CompactJsonFormatter()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same question (from ignorance on my part here) does this change the format of the message significantly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does change things a bit, but it still has no impact on the end-users. The |
||
var arbitraryMessage = nameof(WhenLoggingViaTCP) + "CanLogHelloWorld_WithCompactJsonFormatter" + Guid.NewGuid(); | ||
_logger.Information(arbitraryMessage); | ||
var receivedData = ServerPoller.PollForReceivedData(_server); | ||
receivedData.Should().Contain($"Information: \"{arbitraryMessage}\""); | ||
receivedData.Should().Contain($"\"{arbitraryMessage}\""); | ||
} | ||
|
||
[Fact] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "9.0.102", | ||
"rollForward": "latestMinor" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm so far outside of the dot net ecosystem...
is this a breaking change for folk using older versions of .Net?
(i.e. they won't be able to include it any more)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not against a version bump, just don't want to bump unnecessarily :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is not part of the actual shipped library, so it doesn't matter much. I chose the latest SDK since it's just a sample. I had to upgrade since
netcoreapp1.1
has been deprecated for years now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, it's the ponger 🙈