From 543ffb4013075bb390364d37fa66316840baf0c0 Mon Sep 17 00:00:00 2001 From: Neil C Smith Date: Sat, 11 Nov 2023 13:09:05 +0000 Subject: [PATCH] Add CI testing across all OS. --- .github/workflows/tests.yml | 3 ++- .../src/test/java/org/praxislive/hub/net/FileServerTest.java | 2 +- testsuite/runner.pxr | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 324d191f..5bf1a7d8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,8 @@ jobs: strategy: matrix: java: [ '21' ] - os: [ 'ubuntu-latest' ] + os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ] + fail-fast: false runs-on: ${{ matrix.os }} diff --git a/praxiscore-hub-net/src/test/java/org/praxislive/hub/net/FileServerTest.java b/praxiscore-hub-net/src/test/java/org/praxislive/hub/net/FileServerTest.java index f5d3e328..92c73731 100644 --- a/praxiscore-hub-net/src/test/java/org/praxislive/hub/net/FileServerTest.java +++ b/praxiscore-hub-net/src/test/java/org/praxislive/hub/net/FileServerTest.java @@ -39,7 +39,7 @@ public class FileServerTest { @Test public void testFileServer() throws IOException { - var rootDir = Files.createTempDirectory("px-fileserver-test"); + var rootDir = Files.createTempDirectory("px-fileserver-test").toRealPath(); var allowedDir = Files.createDirectory(rootDir.resolve("allowed")); var allowedFile = Files.writeString(allowedDir.resolve("allowed-text.txt"), "ALLOWED", StandardOpenOption.CREATE_NEW); diff --git a/testsuite/runner.pxr b/testsuite/runner.pxr index 96594e16..784f1d6b 100644 --- a/testsuite/runner.pxr +++ b/testsuite/runner.pxr @@ -15,7 +15,7 @@ import java.nio.file.Path; public class Utils \{ public static Path findLauncher() throws Exception \{ - var launcherName = Platform.isWindows() ? \"praxis.bat\" : \"praxis\"; + var launcherName = Platform.isWindows() ? \"praxis.cmd\" : \"praxis\"; var appHome = System.getProperty(\"app.home\"); if (appHome != null) \{ Path launcher = Path.of(appHome)