From bd7aa2d5f78ebee0412d7aa2b1c64a149f09978a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8st=20Normark?= Date: Wed, 25 Mar 2026 15:49:29 +0100 Subject: [PATCH 1/3] Upgrade CI to .NET 10 --- .github/workflows/dotnetcore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 16bb3a4..f335c9c 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -18,7 +18,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v5.2.0 with: - dotnet-version: 3.1.101 + dotnet-version: 10.0.x - name: Install dependencies working-directory: ./PreMailer.Net From 8dca6a423adfc00159125cc35d0e6fa17033367d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8st=20Normark?= Date: Thu, 26 Mar 2026 10:44:08 +0100 Subject: [PATCH 2/3] Fix: Use AsEnumerable() for reversal in CssSelectorParser to ensure correct processing order --- PreMailer.Net/PreMailer.Net/CssSelectorParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PreMailer.Net/PreMailer.Net/CssSelectorParser.cs b/PreMailer.Net/PreMailer.Net/CssSelectorParser.cs index afe1fe5..466f8e9 100644 --- a/PreMailer.Net/PreMailer.Net/CssSelectorParser.cs +++ b/PreMailer.Net/PreMailer.Net/CssSelectorParser.cs @@ -159,7 +159,7 @@ private static string[] PseudoClasses "valid", "visited" } - .Reverse().ToArray(); // NOTE: Reversal is important to ensure 'first-line' is processed before 'first'. + .AsEnumerable().Reverse().ToArray(); // NOTE: Reversal is important to ensure 'first-line' is processed before 'first'. } } From 79a7205ea3ad2f85129d0c0c98b84bc71f53f663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B8st=20Normark?= Date: Thu, 26 Mar 2026 10:47:45 +0100 Subject: [PATCH 3/3] docs: Add instructions for running GitHub Actions locally using act --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e616316..305959b 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,13 @@ This is useful for advanced scenarios where you need to modify the HTML structur ## Installation **NuGet**: [PreMailer.Net](http://nuget.org/List/Packages/PreMailer.Net) +## GitHub Actions locally +Run locally using **act**: + +```bash +act push --container-architecture=linux/arm64 --platform ubuntu-slim=node:lts-bullseye +``` + ## Contributors * [martinnormark](https://github.com/martinnormark)