Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ commands export-ignore
.github/ export-ignore
docker-compose.yml export-ignore
entrypoint.sh export-ignore
app/.php-cs-fixer.dist.php export-ignore
app/phpstan.neon export-ignore
app/rector.php export-ignore
.php-cs-fixer.dist.php export-ignore
phpstan.neon export-ignore
rector.php export-ignore
2 changes: 0 additions & 2 deletions .github/workflows/format-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
working-directory: ./app
run: composer validate

- name: Cache Composer packages
Expand All @@ -29,7 +28,6 @@ jobs:
${{ runner.os }}-php-

- name: Install dependencies
working-directory: ./app
run: composer install --prefer-dist --no-progress

- name: format code
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-sw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
working-directory: ./app
run: composer validate

- name: Cache Composer packages
Expand All @@ -28,7 +27,6 @@ jobs:
${{ runner.os }}-php-

- name: Install dependencies
working-directory: ./app
run: composer install --prefer-dist --no-progress

- name: Run test suite
Expand Down
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/nbproject/
/vendor/
/app/nbproject/
/app/vendor/
/app/.php-cs-fixer.cache
/app/.phpdoc/
/.php-cs-fixer.cache
/.phpdoc/
File renamed without changes.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ RUN echo "apc.enable_cli=1" >> /usr/local/etc/php/php.ini
RUN echo "apc.enable=1" >> /usr/local/etc/php/php.ini
WORKDIR /app

COPY app/composer.* ./
COPY ./src ./src
COPY ./tests ./tests
COPY composer.* ./

RUN composer install --no-interaction --no-scripts --no-autoloader --prefer-dist

COPY ./app .

RUN composer dump-autoload --optimize

COPY ./entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT ["entrypoint.sh"]
ENTRYPOINT ["entrypoint.sh"]
File renamed without changes.
File renamed without changes.
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ services:
app:
build: .
volumes:
- ./app:/app
- ./src:/app/src
- ./tests:/app//tests
- ./vendor:/app/vendor
- ./composer.json:/app/composer.json
- ./composer.lock:/app/composer.lock
- ./rector.php:/app/rector.php
- ./phpstan.neon:/app/phpstan.neon
- ./.php-cs-fixer.dist.php:/app/.php-cs-fixer.dist.php
networks:
- cache-multi-layer-network
depends_on:
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

case "$1" in
'test-sw')
composer install
exec ./vendor/bin/phpunit ./tests/
;;
'update-vendor')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading