-
Notifications
You must be signed in to change notification settings - Fork 4
2 - added some files for better development improvements #4
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
Merged
dereuromark
merged 5 commits into
php-collective:master
from
vansari:feature/2-development-improvements
Oct 8, 2023
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0127357
2 - added some files for better development improvements
vansari b996801
3 - use correct docker compose version
vansari 1eced89
3 - try to use PHP 8.3 in CI
vansari 105660d
3 - remove unnecessary export-ignore
vansari 7520917
3 - added trailing slashes to identify that line represents a directory
vansari File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,14 @@ | ||
| ARG PHP_VERSION=8.2 | ||
| ARG PHPUNIT_VERSION=10.4.0 | ||
| ARG PHPSTAN_VERSION=1.10.38 | ||
|
|
||
| FROM php:${PHP_VERSION}-cli-alpine | ||
| COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
|
||
| ARG PHPUNIT_VERSION | ||
| ARG PHPSTAN_VERSION | ||
|
|
||
| RUN docker-php-ext-install bcmath && docker-php-ext-enable bcmath | ||
| RUN wget -O phpunit https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar && chmod +x phpunit | ||
| RUN wget -O phpstan https://github.com/phpstan/phpstan/releases/download/${PHPSTAN_VERSION}/phpstan.phar && chmod +x phpstan | ||
|
|
This file contains hidden or 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,3 @@ | ||
| PHP_VERSION=8.2 | ||
| PHPUNIT_VERSION=10.4.0 | ||
| PHPSTAN_VERSION=1.10.38 |
This file contains hidden or 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 hidden or 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 hidden or 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,19 @@ | ||
| install: | ||
| @docker compose run --rm -it php composer install | ||
|
|
||
| phpunit: | ||
| @docker compose run --rm -it php composer test | ||
|
|
||
| coverage: | ||
| @docker compose run --rm -it php composer test-coverage | ||
|
|
||
| phpstan: | ||
| @docker compose run --rm -it php composer stan | ||
|
|
||
| cs-check: | ||
| @docker compose run --rm -it php composer cs-check | ||
|
|
||
| cs-fix: | ||
| @docker compose run --rm -it php composer cs-fix | ||
|
|
||
| test: install cs-check phpstan phpunit |
This file contains hidden or 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,14 @@ | ||
| version: "3" | ||
|
|
||
| services: | ||
| php: | ||
| build: | ||
| context: . | ||
| dockerfile: .docker/Dockerfile | ||
| args: | ||
| PHP_VERSION: "${PHP_VERSION:-8.2}" | ||
| PHPUNIT_VERSION: "${PHPUNIT_VERSION:-10.4.0}" | ||
| PHPSTAN_VERSION: "${PHPSTAN_VERSION:-1.10.38}" | ||
| volumes: | ||
| - ./:/code | ||
| working_dir: /code |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.