Skip to content

Commit

Permalink
Add CI testing across all OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcsmith-net committed Nov 11, 2023
1 parent 061fa9f commit 95e5ba9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions testsuite/runner.pxr
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -119,7 +119,7 @@ import java.nio.file.Files;



final long TIMEOUT = Long.getLong(\"testsuite.timeout\", 20000);
final long TIMEOUT = Long.getLong(\"testsuite.timeout\", 60000);
final String SEP = System.lineSeparator();

@P(1)
Expand Down

0 comments on commit 95e5ba9

Please sign in to comment.