Fix copy text for robots.txt viewer #119
Workflow file for this run
This file contains 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 Compatibility | |
on: | |
push: | |
branches: | |
- trunk | |
paths: | |
- '**.php' | |
pull_request: | |
paths: | |
- '**.php' | |
workflow_dispatch: | |
jobs: | |
# Runs PHP compatibility testing. | |
# | |
# Violations are reported inline with annotations. | |
# | |
# Performs the following steps: | |
# - Checks out the repository. | |
# - Sets up PHP. | |
# - Logs debug information about the runner container. | |
# - Installs Composer dependencies (use cache if possible). | |
# - Make Composer packages available globally. | |
# - Logs PHP_CodeSniffer debug information. | |
# - Runs the PHP compatibility tests. | |
php-comatibility: | |
name: Check PHP compatibility | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'WordPress/health-check' || github.event_name == 'pull_request' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
coverage: none | |
tools: composer, cs2pr | |
- name: Log debug information | |
run: | | |
php --version | |
composer --version | |
- name: Install Composer dependencies | |
uses: ramsey/composer-install@v2 | |
with: | |
composer-options: "--no-progress --no-ansi --no-interaction" | |
- name: Make Composer packages available globally | |
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH | |
- name: Log PHPCS debug information | |
run: phpcs -i | |
- name: Run PHP compatibility tests | |
run: phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr |