Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA workflow #19

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Add GHA workflow #19

wants to merge 1 commit into from

Conversation

palaszhubert
Copy link

No description provided.

composer install
- name: Run tests and analytics
run: |
vendor/phpunit/phpunit/phpunit -c phpunit.xml Tests/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can simplify that to:

Suggested change
vendor/phpunit/phpunit/phpunit -c phpunit.xml Tests/
vendor/bin/phpunit

coverage: ${{matrix.coverage}} # XDebug disabled
- name: Install composer dependencies
run: |
cp phpunit.xml.dist phpunit.xml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be removed - PHPUnit looks for phpunit.xml.dist by default if phpunit.xml is not present.

matrix:
php_version: [7.4, 8.0]
symfony: [4.4, 5]
coverage: [none, pcov]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd always install pcov. We can decide if we want to run coverage under certain conditions, but might as well be generated for each run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants