Skip to content

Commit 0dd97e7

Browse files
authored
fix(ci): repair invalid workflow files (ci.yml + playground.yml) (#14)
* fix(ci): remove empty checkout 'with' and install net8 + net10 runtimes * test: sample padding-band pixel in WbReceipt background test for cross-platform stability * fix(ci): remove empty checkout 'with' in playground workflow
1 parent daa593f commit 0dd97e7

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21-
with:
2221

2322
- name: Setup .NET
2423
uses: actions/setup-dotnet@v4
2524
with:
26-
dotnet-version: '10.0.x'
25+
dotnet-version: |
26+
8.0.x
27+
10.0.x
2728
2829
- name: Restore
2930
run: dotnet restore FlexRender.slnx

.github/workflows/playground.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131

3232
steps:
3333
- uses: actions/checkout@v4
34-
with:
3534

3635
- name: Setup .NET
3736
uses: actions/setup-dotnet@v4

tests/FlexRender.Tests/Integration/WbReceiptIntegrationTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ public async Task WbReceipt_TextWithBackgroundButton_Renders()
107107

108108
Assert.Null(exception);
109109

110-
// The text background should be black
111-
var pixel = bitmap.GetPixel(10, 15);
110+
// A pixel inside the element's top-left padding band must be the black
111+
// background (padding is 8px, so (2,2) is inside the box but never covered
112+
// by a glyph — glyphs are inset by the padding per the box model).
113+
var pixel = bitmap.GetPixel(2, 2);
112114
Assert.Equal(0, pixel.Red);
113115
Assert.Equal(0, pixel.Green);
114116
Assert.Equal(0, pixel.Blue);

0 commit comments

Comments
 (0)