Skip to content

Defined conditions in the while loops in a more strict manner. #2

Defined conditions in the while loops in a more strict manner.

Defined conditions in the while loops in a more strict manner. #2

Workflow file for this run

name: CI
on: [workflow_dispatch, push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
version: ['7.3', '7.4', '8.0', '8.1', '8.2']
# ubuntu-latest = ubuntu-22.04 (06-2024)
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
runs-on: ubuntu-24.04
steps:
- name: 🀘 Checkout
uses: actions/checkout@v5 # https://github.com/actions/checkout
- name: πŸ”½ Setup PHP
uses: shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
with:
php-version: ${{matrix.version}}
extensions: dom, mbstring, tidy
ini-values: memory_limit=-1, error_reporting=-1, display_errors=On
tools: none
- name: πŸ”½ Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: βœ… PHP lint
run: find . -path ./vendor -prune -o -type f -name '*.php' ! -name "test_with_parse_error.php" -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
- name: πŸ› οΈ Start built-in PHP server
run: nohup php -S localhost:8080 -t tests/site > php-server.log 2>&1 &
- name: πŸ”΄πŸŸ’πŸŸ’πŸŸ’ Test
run: php tests/all_tests.php
- name: πŸ“‘ Display Server Log
run: cat php-server.log