Skip to content

Commit e6b026b

Browse files
committed
Diagnose CI failures
1 parent 35a916c commit e6b026b

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/examples.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ name: Examples
88
on:
99
push:
1010
branches: [ master ]
11+
pull_request:
12+
branches: [ master ]
1113

1214
# Allows to run this workflow manually from the Actions tab
1315
workflow_dispatch:
@@ -32,3 +34,14 @@ jobs:
3234
# Check the build
3335
- name: Test the build
3436
run: ./gradlew test
37+
38+
# Upload test artifact
39+
- name: Upload test output
40+
uses: actions/upload-artifact@v4
41+
if: ${{ failure() }}
42+
with:
43+
name: test-output
44+
path: |
45+
build/reports/tests/
46+
retention-days: 15
47+
overwrite: true

src/examples/java/io/sf/carte/example/FontDecorationPainter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
3-
Copyright (c) 2024, Carlos Amengual.
3+
Copyright (c) 2024, contributors to EchoSVG project.
44
55
Licensed under a BSD-style License. You can find the license here:
66
https://css4j.github.io/LICENSE.txt
@@ -35,11 +35,11 @@ public void paint(Graphics2D g) {
3535
g.setBackground(backgroundColor);
3636

3737
// Set default font
38-
g.setFont(new Font("Arial", Font.BOLD, 12));
38+
g.setFont(new Font("sans-serif", Font.BOLD, 12));
3939

4040
// Create a font with the desired attributes, including STRIKETHROUGH
4141
Map<TextAttribute, Object> attributes = new HashMap<>();
42-
attributes.put(TextAttribute.FAMILY, "Helvetica");
42+
attributes.put(TextAttribute.FAMILY, "serif");
4343
attributes.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_EXTRABOLD);
4444
attributes.put(TextAttribute.SIZE, 20);
4545
attributes.put(TextAttribute.STRIKETHROUGH, TextAttribute.STRIKETHROUGH_ON);

0 commit comments

Comments
 (0)