-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into ft/configurability
- Loading branch information
Showing
6 changed files
with
67 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,40 @@ | ||
name: CI | ||
|
||
on: [push] | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build-test: | ||
php_matrix: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
version: [7.4, 8.3] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
extensions: mbstring, intl, sockets | ||
coverage: xdebug | ||
tools: composer, prestissimo | ||
# tools: phpunit, composer, prestissimo, php-cs-fixer, phpstan | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.version }} | ||
extensions: mbstring, intl, sockets | ||
coverage: xdebug | ||
tools: composer, prestissimo | ||
# tools: phpunit, composer, prestissimo, php-cs-fixer, phpstan | ||
|
||
- run: composer install | ||
- run: composer install | ||
|
||
- name: Start SolrCloud | ||
run: docker-compose up -d | ||
- name: Start SolrCloud | ||
run: docker-compose up -d | ||
|
||
- name: Sleep a few seconds to wait for Solr to be ready | ||
uses: jakejarvis/wait-action@master | ||
with: | ||
time: '10s' | ||
- name: Sleep a few seconds to wait for Solr to be ready | ||
uses: jakejarvis/wait-action@master | ||
with: | ||
time: "10s" | ||
|
||
- name: PHPUnit | ||
run: ./vendor/bin/phpunit --testdox --colors=always | ||
- name: PHPUnit | ||
run: ./vendor/bin/phpunit --testdox --colors=always | ||
|
||
- name: PHPStan | ||
run: ./vendor/bin/phpstan analyse --no-progress | ||
- name: PHPStan | ||
run: ./vendor/bin/phpstan analyse --no-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="SolariumCollectionManager"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<coverage includeUncoveredFiles="true" | ||
processUncoveredFiles="true" | ||
ignoreDeprecatedCodeUnits="true" | ||
disableCodeCoverageIgnore="true" | ||
> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
|
||
<report> | ||
<text outputFile="php://stdout" showUncoveredFiles="false" showOnlySummary="true"/> | ||
</report> | ||
</coverage> | ||
|
||
<logging> | ||
<!-- <testdoxText outputFile="php://stdout"/> --> | ||
</logging> | ||
|
||
<php> | ||
<!-- <server name="NAME" value="VALUE"/> --> | ||
</php> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="tests/bootstrap.php" colors="true" cacheDirectory=".phpunit.cache"> | ||
<testsuites> | ||
<testsuite name="SolariumCollectionManager"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage includeUncoveredFiles="true" ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"> | ||
<report> | ||
<text outputFile="php://stdout" showUncoveredFiles="false" showOnlySummary="true"/> | ||
</report> | ||
</coverage> | ||
<logging> | ||
<testdoxText outputFile="php://stdout"/> | ||
</logging> | ||
<php> | ||
<!-- <server name="NAME" value="VALUE"/> --> | ||
</php> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters