php-actions / phpunit

Run PHPUnit tests in Github Actions.
108 stars 24 forks source link

PHPUnit error: Argument 3 passed to PHPUnit\TextUI\TestRunner::doRun() must be of the type bool, array given #10

Closed nrutman closed 4 years ago

nrutman commented 4 years ago

I wouldn't be surprised if this is a problem with how I've configured my action, but I keep getting the following error when PHPUnit attempts to run…

Screen Shot 2020-05-09 at 1 52 16 PM

Here's my workflow configuration:

name: CI

on: [push]

jobs:
  build-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1
      - uses: php-actions/composer@v1
      - name: PHPUnit tests
        uses: php-actions/phpunit@v1
        with:
          config: phpunit.xml
          junit: junit.xml

Any suggestions on what I should be doing differently? Thanks!

nrutman commented 4 years ago

Just in case someone else comes across this, the problem is that I was using PHPUnit 7.5.x…upgrading to PHPUnit 8 fixed the issue.

g105b commented 4 years ago

Thanks for your response, I was just at my computer and decided to look into this. Glad it's working for you!

nrutman commented 4 years ago

Sure thing, @g105b … this was my first attempt at using GitHub actions, so I was guessing I had something configured improperly or something. 😄