This commit is contained in:
netkas 2025-03-17 13:13:20 -04:00
parent 1384aee3b3
commit ec3b71a8f9
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -279,9 +279,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: php:8.3 image: php:8.3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
options: --network host
if: needs.check-phpunit.outputs.phpunit-exists == 'true' if: needs.check-phpunit.outputs.phpunit-exists == 'true'
steps: steps:
@ -302,17 +299,6 @@ jobs:
chmod +x /usr/local/bin/install-php-extensions chmod +x /usr/local/bin/install-php-extensions
install-php-extensions zip 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 - name: Install phive
run: | run: |
wget -O phive.phar https://phar.io/releases/phive.phar wget -O phive.phar https://phar.io/releases/phive.phar
@ -343,16 +329,6 @@ jobs:
run: | run: |
ncc package install --package="release/net.nosial.socialbox.ncc" --build-source --reinstall -y --log-level debug 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 - name: Run PHPUnit tests
run: | run: |
wget https://phar.phpunit.de/phpunit-11.3.phar wget https://phar.phpunit.de/phpunit-11.3.phar