Changeset 58598 for branches/5.7/.github/workflows/php-compatibility.yml
- Timestamp:
- 06/28/2024 07:00:36 PM (11 months ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
- Property svn:mergeinfo changed
/trunk merged: 52179,56113-56114,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/5.7/.github/workflows/php-compatibility.yml
r55518 r58598 23 23 # These files configure Composer. Changes could affect the outcome. 24 24 - 'composer.*' 25 # This file configures PHP Compatibility scanning. Changes could affect the outcome.25 # This file configures PHP compatibility scanning. Changes could affect the outcome. 26 26 - 'phpcompat.xml.dist' 27 27 # Changes to workflow files should always verify all workflows are successful. … … 36 36 cancel-in-progress: true 37 37 38 # Disable permissions for all available scopes by default. 39 # Any needed permissions should be configured at the job level. 40 permissions: {} 41 38 42 jobs: 39 40 43 # Runs PHP compatibility testing. 41 #42 # Violations are reported inline with annotations.43 #44 # Performs the following steps:45 # - Checks out the repository.46 # - Sets up PHP.47 # - Logs debug information about the GitHub Action runner.48 # - Installs Composer dependencies (use cache if possible).49 # - Make Composer packages available globally.50 # - Logs PHP_CodeSniffer debug information.51 # - Runs the PHP compatibility tests.52 44 php-compatibility: 53 45 name: Check PHP compatibility 54 runs-on: ubuntu-latest 55 timeout-minutes: 20 46 uses: WordPress/wordpress-develop/.github/workflows/reusable-php-compatibility.yml@trunk 47 permissions: 48 contents: read 56 49 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 57 58 steps: 59 - name: Checkout repository 60 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 61 62 - name: Set up PHP 63 uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0 64 with: 65 php-version: '7.4' 66 coverage: none 67 tools: composer, cs2pr 68 69 - name: Log debug information 70 run: | 71 php --version 72 composer --version 73 74 - name: Install Composer dependencies 75 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 76 with: 77 composer-options: "--no-progress --no-ansi" 78 79 - name: Make Composer packages available globally 80 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 81 82 - name: Log PHPCS debug information 83 run: phpcs -i 84 85 - name: Run PHP compatibility tests 86 run: phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr 50 with: 51 php-version: '7.4' 87 52 88 53 slack-notifications: 89 54 name: Slack Notifications 90 55 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 56 permissions: 57 actions: read 58 contents: read 91 59 needs: [ php-compatibility ] 92 60 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} … … 102 70 name: Failed workflow tasks 103 71 runs-on: ubuntu-latest 72 permissions: 73 actions: write 104 74 needs: [ php-compatibility, slack-notifications ] 105 75 if: | … … 114 84 steps: 115 85 - name: Dispatch workflow run 116 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.086 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 117 87 with: 118 88 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.