DEBUG #123
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP CS Fixer | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
php-cs-fixer: | |
name: PHP CS Fixer | |
runs-on: ubuntu-latest | |
services: | |
neo4j: | |
image: neo4j:5.5 # Use a stable version instead of 'latest' | |
ports: | |
- 7474:7474 | |
- 7687:7687 | |
env: | |
NEO4J_AUTH: neo4j/password | |
options: | |
--health-cmd="curl --silent --fail http://localhost:7474" | |
--health-interval=10s | |
--health-retries=5 | |
--health-timeout=5s | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Docker Compose | |
run: docker-compose -f docker-compose.yml up -d | |
- name: Wait for services to be ready | |
run: | | |
echo "Waiting for Neo4j service to be ready..." | |
# Check if Neo4j is up and running by polling the health endpoint | |
until curl --silent --fail http://localhost:7474; do | |
echo "Waiting for Neo4j to become available..." | |
sleep 5 | |
done | |
- name: Install Composer dependencies | |
run: docker exec -t php-app composer install --no-progress --prefer-dist | |
- name: Run PHP CS Fixer | |
run: | | |
docker exec -t php-app vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes | |
- name: Clean up Docker | |
run: docker-compose down |