From 8becf5742e14536ee6e8b109475dbf6f562d2bf4 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 2 Oct 2024 13:34:36 +0200 Subject: [PATCH] GH Actions: tweak to get commands running on Windows --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b69d3f..5c747f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -167,7 +167,7 @@ jobs: - name: Grab PHPUnit version id: phpunit_version - run: echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT + run: echo "VERSION=$(php "vendor/bin/phpunit" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT - name: "Run unit tests (PHPUnit < 10)" if: ${{ ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }} @@ -182,4 +182,4 @@ jobs: name: parallel-lint-phar - name: Run linter against codebase using the phar - run: php ./parallel-lint.phar --exclude vendor --exclude tests/fixtures . + run: php "parallel-lint.phar" --exclude vendor --exclude tests/fixtures .