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
24 changes: 13 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,24 @@ jobs:
- name: Checkout.
uses: actions/checkout@v5

- name: Install docker compose.
- name: Show docker version.
run: |
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
docker version
docker compose version

- name: Build and start containers.
run: docker-compose up -d --build
run: docker compose up -d --build

- name: Wait for container to be ready.
- name: Wait for readiness.
run: |
echo "Waiting 30 seconds for container initialization..."
sleep 30
docker logs yii2-apache

- name: Codeceptcion build.
for i in {1..60}; do
if docker exec yii2-apache sh -lc "curl -ksS -o /dev/null -w '%{http_code}' https://localhost | grep -qE '200|302'"; then
echo "Service is ready"; exit 0; fi
sleep 2
done
echo "Service not ready"; docker logs yii2-apache; exit 1

- name: Codeception build.
run: docker exec yii2-apache vendor/bin/codecept build

- name: Run codeception tests.
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Bug #175: Update allowed IPs in configuration for development purposes in `configuration.md` (@terabytesoftw)
- Bug #177: Add missing config path to ECS configuration in `ecs.php` (@terabytesoftw)
- Bug #180: Update paths to ignore in GitHub Actions workflow for pull requests and pushes (@terabytesoftw)
- Bug #184: Update Docker commands and badge links in `README.md` for accurate workflow status (@terabytesoftw)

## 0.1.0 August 31, 2025

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<a href="https://github.com/yiisoft/yii2/tree/22.0" target="_blank">
<img src="https://img.shields.io/badge/22.0.x-0073AA.svg?style=for-the-badge&logo=yii&logoColor=white" alt="Yii 22.0.x">
</a>
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/build.yml" target="_blank">
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/build.yml?query=branch%3Aapache" target="_blank">
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/app-basic/build.yml?branch=apache&style=for-the-badge&label=Codeception" alt="Codeception">
</a>
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml" target="_blank">
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml?query=branch%3Aapache" target="_blank">
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/app-basic/static.yml?branch=apache&style=for-the-badge&label=PHPStan" alt="PHPStan">
</a>
</p>
Expand Down Expand Up @@ -137,7 +137,7 @@ final class SiteController extends Controller
## Quality code

[![Codecov](https://img.shields.io/codecov/c/github/yii2-extensions/app-basic.svg?branch=apache&style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/github/yii2-extensions/app-basic)
[![PHPStan Level Max](https://img.shields.io/badge/PHPStan-Level%20Max-4F5D95.svg?style=for-the-badge&logo=php&logoColor=white)](https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml)
[![PHPStan Level Max](https://img.shields.io/badge/PHPStan-Level%20Max-4F5D95.svg?style=for-the-badge&logo=php&logoColor=white)](https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml?query=branch%3Aapache)
[![StyleCI](https://img.shields.io/badge/StyleCI-Passed-44CC11.svg?style=for-the-badge&logo=styleci&logoColor=white)](https://github.styleci.io/repos/165419144?branch=apache)

## Documentation
Expand Down
2 changes: 2 additions & 0 deletions docker/php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
date.timezone = UTC
display_errors = Off
expose_php = Off
log_errors = On
error_log = /proc/self/fd/2
memory_limit = 512M
post_max_size = 150M
session.auto_start = Off
Expand Down
9 changes: 7 additions & 2 deletions docker/supervisor/conf.d/queue.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
process_name=%(program_name)s_%(process_num)02d
command=/usr/local/bin/php /app/yii queue/listen --verbose=1 --color=0
autorestart=true
autostart=true
numprocs=4
# Enable only after installing yiisoft/yii2-queue; flipped on via image build or entrypoint.
autostart=false
# Keep demo light; can be raised later.
numprocs=1
stopasgroup=true
killasgroup=true
stopsignal=TERM
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
Expand Down
Loading