Skip to content

Commit

Permalink
CI: separate rules-tests in 2 parallel jobs (#3815)
Browse files Browse the repository at this point in the history
* CI: separate rules-tests in 2 parallel jobs

* typo

* Update tests.yaml

* Update tests.yaml

* Update phpunit.xml

* the p-rules

* drop slashes

* better suite name

* Update phpunit.xml

* revert to previous groups
  • Loading branch information
staabm committed May 13, 2023
1 parent 7da67ee commit 846953d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
matrix:
php: ['8.1']
path:
- tests
- rules-tests
- packages-tests
- utils-tests
- "tests"
- "--testsuite php-rules"
- "--testsuite other-rules"
- "packages-tests"
- "utils-tests"

name: PHP ${{ matrix.php }} tests for ${{ matrix.path }}
steps:
Expand Down
8 changes: 8 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
<directory>packages-tests</directory>
<directory>utils-tests</directory>
</testsuite>
<!-- divide the rules-tests roughly in 2 equal sized groups -->
<testsuite name="php-rules">
<directory>rules-tests/Php*</directory>
</testsuite>
<testsuite name="other-rules">
<directory>rules-tests/</directory>
<exclude>rules-tests/Php*</exclude>
</testsuite>
</testsuites>
<php>
<ini name="memory_limit" value="-1"/>
Expand Down

0 comments on commit 846953d

Please sign in to comment.