Skip to content

Commit bd76cc7

Browse files
Upgrade CI to .NET 10 (#446)
* Upgrade CI to .NET 10 * Fix: Use AsEnumerable() for reversal in CssSelectorParser to ensure correct processing order * docs: Add instructions for running GitHub Actions locally using act
1 parent ed30eae commit bd76cc7

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup .NET Core
1919
uses: actions/setup-dotnet@v5.2.0
2020
with:
21-
dotnet-version: 3.1.101
21+
dotnet-version: 10.0.x
2222

2323
- name: Install dependencies
2424
working-directory: ./PreMailer.Net

PreMailer.Net/PreMailer.Net/CssSelectorParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private static string[] PseudoClasses
159159
"valid",
160160
"visited"
161161
}
162-
.Reverse().ToArray(); // NOTE: Reversal is important to ensure 'first-line' is processed before 'first'.
162+
.AsEnumerable().Reverse().ToArray(); // NOTE: Reversal is important to ensure 'first-line' is processed before 'first'.
163163
}
164164
}
165165

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ This is useful for advanced scenarios where you need to modify the HTML structur
134134
## Installation
135135
**NuGet**: [PreMailer.Net](http://nuget.org/List/Packages/PreMailer.Net)
136136

137+
## GitHub Actions locally
138+
Run locally using **act**:
139+
140+
```bash
141+
act push --container-architecture=linux/arm64 --platform ubuntu-slim=node:lts-bullseye
142+
```
143+
137144
## Contributors
138145

139146
* [martinnormark](https://github.com/martinnormark)

0 commit comments

Comments
 (0)