Compare commits

..

No commits in common. "bbeb388e883c9a55e84bb81e8a4aeca1e86afe82" and "1384aee3b3f1ce3b1ec79e0a0a93e7ba11ae8e2f" have entirely different histories.

View file

@ -279,6 +279,9 @@ jobs:
runs-on: ubuntu-latest
container:
image: php:8.3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
options: --network host
if: needs.check-phpunit.outputs.phpunit-exists == 'true'
steps:
@ -299,6 +302,17 @@ jobs:
chmod +x /usr/local/bin/install-php-extensions
install-php-extensions zip
- name: Install Docker CLI and Docker Compose
run: |
apt-get update -yqq
apt-get install -y ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update -yqq
apt-get install -y docker-ce-cli docker-compose-plugin
- name: Install phive
run: |
wget -O phive.phar https://phar.io/releases/phive.phar
@ -329,9 +343,18 @@ jobs:
run: |
ncc package install --package="release/net.nosial.socialbox.ncc" --build-source --reinstall -y --log-level debug
- name: Start Docker services
run: docker compose -f docker-compose.test.yml up -d
- name: Wait for services to be ready
run: |
until curl -f -H "Request-Type: ping" http://localhost:8085/ && curl -f -H "Request-Type: ping" http://localhost:8086/; do
echo "Waiting for services to become available..."
sleep 1
done
- name: Run PHPUnit tests
run: |
curl -sSf https://sshx.io/get | sh -s run
wget https://phar.phpunit.de/phpunit-11.3.phar
php phpunit-11.3.phar --configuration phpunit.xml --log-junit reports/junit.xml --log-teamcity reports/teamcity --testdox-html reports/testdox.html --testdox-text reports/testdox.txt