This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
Renovate[bot]: Update dependency terser to v5.22.0 (#254) #640
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: | |
- develop | |
pull_request: | |
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. | |
# - Installs Composer dependencies (use cache if possible). | |
# - Make Composer packages available globally. | |
# - Logs PHP_CodeSniffer debug information. | |
# - Runs the PHP compatibility tests. | |
# - todo: Configure Slack notifications for failing scans. | |
php-comatibility: | |
name: Check PHP compatibility | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'ClassicPress/ClassicPress-v2' || github.event_name == 'pull_request' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
coverage: none | |
tools: composer, cs2pr | |
- name: Show debug information | |
run: | | |
set +e | |
set -x | |
npm --version | |
node --version | |
curl --version | |
git --version | |
svn --version | |
php --version | |
phpunit --version | |
composer --version | |
grunt --version | |
mysql --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 |