Compare commits
No commits in common. "bbeb388e883c9a55e84bb81e8a4aeca1e86afe82" and "1384aee3b3f1ce3b1ec79e0a0a93e7ba11ae8e2f" have entirely different histories.
bbeb388e88
...
1384aee3b3
1 changed files with 24 additions and 1 deletions
25
.github/workflows/ncc_workflow.yml
vendored
25
.github/workflows/ncc_workflow.yml
vendored
|
@ -279,6 +279,9 @@ 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:
|
||||||
|
@ -299,6 +302,17 @@ 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
|
||||||
|
@ -329,9 +343,18 @@ 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: |
|
||||||
curl -sSf https://sshx.io/get | sh -s run
|
|
||||||
wget https://phar.phpunit.de/phpunit-11.3.phar
|
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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue