Skip to content

Fix CI, license copyright update (#60) #42

Fix CI, license copyright update (#60)

Fix CI, license copyright update (#60) #42

Workflow file for this run

name: "test"
on: [push, pull_request]
jobs:
test:
name: Test with PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
# Prevent duplicate builds on internal PRs.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
php-version: ["7.4", "8.0"]
steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
- name: Composer install
uses: "ramsey/composer-install@v1"
- name: Start Centrifugo
run: docker run -d -p 8000:8000 centrifugo/centrifugo:latest centrifugo --api_insecure
- name: Check container status
run: docker ps
- name: Wait for server to be ready
run: |
while ! curl -s http://localhost:8000 > /dev/null; do
echo "Waiting for server..."
sleep 1
done
shell: bash
- name: Run tests
run: vendor/bin/phpunit