Skip to content

Commit

Permalink
GH Actions: tweak to get commands running on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Oct 2, 2024
1 parent 57ded6b commit 8becf57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.' ) }}
Expand All @@ -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 .

0 comments on commit 8becf57

Please sign in to comment.