diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0b2ce1c..33806a1 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,9 +8,9 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] - php: [8.3, 8.2, 8.1] - stability: [prefer-lowest, prefer-stable] + os: [ubuntu-latest] + php: [8.4, 8.3, 8.2, 8.1] + stability: [prefer-stable] name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/src/Mjml.php b/src/Mjml.php index 86cd3ac..f3303b1 100755 --- a/src/Mjml.php +++ b/src/Mjml.php @@ -143,9 +143,12 @@ protected function checkForDeprecationWarning(string $result): string public function getCommand(string $templatePath, string $outputPath, $arguments): array { + $home = getenv("HOME"); + $extraDirectories = [ '/usr/local/bin', '/opt/homebrew/bin', + $home . '/n/bin', // support https://github.com/tj/n __DIR__.'/../node_modules/mjml/bin', ];