Skip to content

Commit

Permalink
fix: try to build the phar when publishing (step 5)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-picas committed Feb 4, 2024
1 parent ef89d78 commit 5d98371
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ jobs:
- name: Install composer dependencies
uses: php-actions/composer@v6

- name: Cat Finder file
run: cat vendor/symfony/finder/Finder.php

- name: Test make-phar
run: php bin/mde-dev make-phar
run: php bin/mde-dev --verbose --debug make-phar

- name: Release
env:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"friendsofphp/php-cs-fixer": "@stable",
"phpmetrics/phpmetrics": "@stable",
"phploc/phploc": "@stable",
"sebastian/phpcpd":"@stable"
"sebastian/phpcpd":"@stable",
"symfony/finder": "<6"
},
"replace": {
"atelierspierrot/markdown-extended": "dev-master",
Expand Down
2 changes: 1 addition & 1 deletion src/MarkdownExtended/Console/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function _exit($code = 0)
* @param \Exception $e
* @return void
*/
public function handleException(\Exception $e)
public function handleException($e)
{
if (self::VERBOSITY_DEBUG <= $this->getVerbosity()) {
$str = sprintf(
Expand Down
5 changes: 5 additions & 0 deletions src/MarkdownExtendedDev/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ class Compiler

public function getDefaultFinder()
{
$stream = new \MarkdownExtended\Console\Stream();
$stream->writeln(
sprintf('> creating a Compiler object in base path "%s"', $this->root_dir)
);

$finder = new Finder();
$finder->files()
->ignoreVCS(true)
Expand Down

0 comments on commit 5d98371

Please sign in to comment.