Skip to content

Modernize dependencies, CI, and branding#1

Merged
bhavishyachandra merged 5 commits into
masterfrom
chore/modernize-deps-ci
May 20, 2026
Merged

Modernize dependencies, CI, and branding#1
bhavishyachandra merged 5 commits into
masterfrom
chore/modernize-deps-ci

Conversation

@bhavishyachandra

@bhavishyachandra bhavishyachandra commented May 20, 2026

Copy link
Copy Markdown
Contributor

This PR updates the dependency matrix, moves CI and publishing to GitHub Actions, and switches the repository/package metadata to Hangtools.

Changes:

  • bumps core package references and aligns test targets
  • replaces AppVeyor with GitHub Actions CI
  • adds a GitHub Actions publish workflow
  • migrates Hangfire JSON handling to SerializationHelper
  • updates README and package metadata for the Hangtools ownership change

Validation:

  • dotnet build succeeds locally
  • net8.0 test execution is blocked in this container because the .NET 8 runtime is not installed

Copilot AI review requested due to automatic review settings May 20, 2026 03:34
@bhavishyachandra bhavishyachandra changed the title Modernize dependencies and CI Modernize dependencies, CI, and branding May 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the Hangfire.Console repo by updating core/test dependencies, migrating CI/publishing from AppVeyor to GitHub Actions, and aligning JSON serialization usage with newer Hangfire APIs.

Changes:

  • Update Hangfire.Core and related serialization usage (move from JobHelper.ToJson/FromJson + explicit Json.NET settings to Hangfire.Common.SerializationHelper).
  • Retarget and update test dependencies (multi-target tests on net472;net8.0, newer xUnit/Moq/Test SDK).
  • Replace AppVeyor with GitHub Actions workflows for CI and NuGet publishing; update README badges accordingly.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/Hangfire.Console.Tests/Storage/ConsoleStorageFacts.cs Updates test stubs to serialize ConsoleLine using SerializationHelper.
tests/Hangfire.Console.Tests/Hangfire.Console.Tests.csproj Multi-targets tests (net472;net8.0) and bumps test package versions.
tests/Hangfire.Console.Tests/Dashboard/JobProgressDispatcherFacts.cs Switches JSON serialization assertion to SerializationHelper.
src/Hangfire.Console/Storage/ConsoleStorage.cs Uses SerializationHelper for storing and reading console lines.
src/Hangfire.Console/Hangfire.Console.csproj Updates TFMs and dependency versions (notably Hangfire.Core/Newtonsoft.Json).
src/Hangfire.Console/Dashboard/JobProgressDispatcher.cs Removes explicit Json.NET settings and serializes response via SerializationHelper.
README.md Replaces AppVeyor badge with GitHub Actions CI/publish badges.
Hangfire.Console.sln Removes AppVeyor config from Solution Items.
appveyor.yml Deletes legacy AppVeyor pipeline configuration.
.github/workflows/ci.yml Adds GitHub Actions CI workflow (restore/build/test/pack).
.github/workflows/publish-nuget.yml Adds GitHub Actions tag-based NuGet publish workflow using OIDC login.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 125 to 129
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
<PackageReference Include="Newtonsoft.Json" Version="5.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
</ItemGroup>
Comment on lines 1 to 12
using System.Collections.Generic;
using Hangfire.Common;
using Hangfire.Console.Dashboard;
using Newtonsoft.Json;
using Xunit;

namespace Hangfire.Console.Tests.Dashboard
{
public class JobProgressDispatcherFacts
{
[Fact]
public void JsonSettings_PreservesDictionaryKeyCase()
public void Serialize_PreservesDictionaryKeyCase()
{
Comment thread .github/workflows/ci.yml Outdated
Comment on lines +31 to +34
run: dotnet test tests/Hangfire.Console.Tests/Hangfire.Console.Tests.csproj -c Release --no-build

- name: Pack
run: dotnet pack src/Hangfire.Console/Hangfire.Console.csproj -c Release --no-build -o artifacts No newline at end of file
Comment thread .github/workflows/publish-nuget.yml Outdated
Comment on lines +31 to +34
run: dotnet test tests/Hangfire.Console.Tests/Hangfire.Console.Tests.csproj -c Release --no-build

- name: Pack
run: dotnet pack src/Hangfire.Console/Hangfire.Console.csproj -c Release --no-build -o artifacts /p:ContinuousIntegrationBuild=true
@bhavishyachandra bhavishyachandra merged commit 9197ade into master May 20, 2026
1 check passed
@bhavishyachandra bhavishyachandra deleted the chore/modernize-deps-ci branch May 20, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants