Skip to content

Placeholder for Reports and Tasks #52

Placeholder for Reports and Tasks

Placeholder for Reports and Tasks #52

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- staging
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: PHP version
run: php -v
- name: PHP lint
run: |
if command -v rg >/dev/null 2>&1; then
files=$(rg --files -g "*.php")
else
files=$(find . -type f -name "*.php")
fi
if [ -z "$files" ]; then
echo "No PHP files found."
exit 0
fi
echo "$files" | xargs -n 1 php -l
- name: Run tests
run: php tests/run.php