Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build & Test

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 25
cache: maven

- name: Build & Test (headless)
run: mvn -B verify
27 changes: 19 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,23 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
<configuration>
<argLine>
--enable-native-access=javafx.graphics -XX:+UseCompactObjectHeaders --finalization=disabled
</argLine>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand All @@ -75,12 +92,6 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand All @@ -107,7 +118,7 @@
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
Expand All @@ -118,7 +129,7 @@
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/tools/maran/svgnode/SvgNodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ private static void assertSvgDimensions(SvgNode node, double expectedWidth, doub
svg.minHeight(-1), svg.prefHeight(-1), svg.maxHeight(-1) // height
};
});
assertEquals(expectedWidth, widthHeightDimensions[0], 1, "svg minWidth");
assertEquals(expectedWidth, widthHeightDimensions[1], 1, "svg prefWidth");
assertEquals(expectedWidth, widthHeightDimensions[2], 1, "svg maxWidth");
assertEquals(expectedHeight, widthHeightDimensions[3], 1, "svg minHeight");
assertEquals(expectedHeight, widthHeightDimensions[4], 1, "svg prefHeight");
assertEquals(expectedHeight, widthHeightDimensions[5], 1, "svg maxHeight");
assertEquals(expectedWidth, widthHeightDimensions[0], EPS, "svg minWidth");
assertEquals(expectedWidth, widthHeightDimensions[1], EPS, "svg prefWidth");
assertEquals(expectedWidth, widthHeightDimensions[2], EPS, "svg maxWidth");
assertEquals(expectedHeight, widthHeightDimensions[3], EPS, "svg minHeight");
assertEquals(expectedHeight, widthHeightDimensions[4], EPS, "svg prefHeight");
assertEquals(expectedHeight, widthHeightDimensions[5], EPS, "svg maxHeight");
}

private static Scene createScene(SvgNode node) {
Expand Down
Loading