-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Crell/prep
Prep for 1.0.0.
- Loading branch information
Showing
34 changed files
with
231 additions
and
151 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Quality assurance | ||
on: | ||
push: | ||
branches: ['master'] | ||
pull_request: ~ | ||
|
||
jobs: | ||
phpunit: | ||
name: PHPUnit tests on ${{ matrix.php }} ${{ matrix.composer-flags }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [ '8.1', '8.2', '8.3' ] | ||
composer-flags: [ '' ] | ||
phpunit-flags: [ '--coverage-text' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug | ||
tools: composer:v2 | ||
- run: composer install --no-progress ${{ matrix.composer-flags }} | ||
- run: vendor/bin/phpunit ${{ matrix.phpunit-flags }} | ||
phpstan: | ||
name: PHPStan checks on ${{ matrix.php }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [ '8.1', '8.2', '8.3' ] | ||
composer-flags: [ '' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug | ||
tools: composer:v2 | ||
- run: composer install --no-progress ${{ matrix.composer-flags }} | ||
- run: vendor/bin/phpstan |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ build | |
composer.lock | ||
vendor | ||
.phpunit.result.cache | ||
.phpunit.cache | ||
/vendor-bin/**/vendor | ||
.env | ||
profiles |
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,11 +1,8 @@ | ||
FROM php:8.1.4-cli | ||
FROM php:8.1-cli | ||
WORKDIR /usr/src/myapp | ||
CMD [ "vendor/bin/phpunit" ] | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
|
||
RUN apt-get update && apt-get install zip unzip git -y \ | ||
&& pecl install xdebug \ | ||
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | ||
&& php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \ | ||
&& php composer-setup.php --install-dir=/usr/bin --filename=composer \ | ||
&& php -r "unlink('composer-setup.php');" \ | ||
&& mkdir /.composer && chmod 777 /.composer | ||
&& pecl install pcov |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM php:8.2-cli | ||
WORKDIR /usr/src/myapp | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
|
||
RUN apt-get update && apt-get install zip unzip git -y \ | ||
&& pecl install xdebug \ | ||
&& pecl install pcov |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so | ||
xdebug.output_dir=profiles |
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,12 +1,14 @@ | ||
parameters: | ||
level: 6 | ||
level: 8 | ||
paths: | ||
- src | ||
checkGenericClassInNonGenericObjectType: false | ||
ignoreErrors: | ||
- '#Match expression does not handle remaining value#' | ||
- '#has an uninitialized readonly property (.*). Assign it in the constructor.#' | ||
- '#Readonly property (.*) is assigned outside of the constructor.#' | ||
# I don't know what's up with this one. Need to come back to it and fix the docblock. | ||
- '#Method (.*)::analyze\(\) should return T of object but returns object.#' | ||
|
||
# Tests include an absurd number of classes that are by design not tricked-out, so don't | ||
# bother checking those. |
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
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
Oops, something went wrong.