php-actions / phpunit

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

Add testsuite option to action #2

Closed AdGARAY closed 4 years ago

AdGARAY commented 4 years ago

Hi! It will be great to have the --testsuite parameter as an optional parameter to run a specific testsuite

description: Run your PHPUnit tests in your Github Actions.

inputs:
  config:
    description: Configuration file location
    required: false
    default: test/phpunit/phpunit.xml
  junit:
    description: JUnit output file location
    required: false
    default: test/phpunit/_junit/junit.xml
  memory:
    description: Memory limit
    required: false
    default: 512M
  testsuite:
    description: Specify a testsuite to run
    required: false

runs:
  using: 'docker'
  image: 'Dockerfile'
  args:
    - -c
    - ${{ inputs.config }}
    - --log-junit
    - ${{ inputs.junit }}
    - -d
    - "memory_limit=${{ inputs.memory }}"
    - --bootstrap
    - vendor/autoload.php
    - "--testsuite=${{ inputs.testsuite }}"

branding:
  icon: 'check-square'
  color: 'purple'
g105b commented 4 years ago

Great. I'll look into this tomorrow. Thanks for your feedback.

g105b commented 4 years ago

Hi @AdGARAY , please can you check out the PR. In case I don't hear anything back, this will be merged in within 24 hours as it is such a simple change.

PR: https://github.com/php-actions/phpunit/pull/3

AdGARAY commented 4 years ago

Thank you Greg, I just comment something in the pr