Changeset 53600 for branches/5.5/.github/workflows/php-compatibility.yml
- Timestamp:
- 06/30/2022 04:37:20 PM (3 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
- Property svn:mergeinfo changed
/trunk merged: 50704,50796,50930,51341,51355,51498,51511,51535,51921,51924-51925,51937,52002,52130,52183,52233,53112,53581-53582,53592
- Property svn:mergeinfo changed
-
branches/5.5/.github/workflows/php-compatibility.yml
r50603 r53600 5 5 push: 6 6 branches: 7 - master8 7 - trunk 9 8 - '5.[5-9]' … … 14 13 pull_request: 15 14 branches: 16 - master17 15 - trunk 18 16 - '5.[5-9]' … … 29 27 workflow_dispatch: 30 28 29 # Cancels all previous workflow runs for pull requests that have not completed. 30 concurrency: 31 # The concurrency group contains the workflow name and the branch name for pull requests 32 # or the commit hash for any other events. 33 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 34 cancel-in-progress: true 35 31 36 jobs: 32 37 … … 38 43 # - Checks out the repository. 39 44 # - Sets up PHP. 40 # - Logs debug information about the runner container.45 # - Logs debug information about the GitHub Action runner. 41 46 # - Installs Composer dependencies (use cache if possible). 42 47 # - Make Composer packages available globally. 43 48 # - Logs PHP_CodeSniffer debug information. 44 49 # - Runs the PHP compatibility tests. 45 # - todo: Configure Slack notifications for failing scans.46 50 php-comatibility: 47 51 name: Check PHP compatibility 48 52 runs-on: ubuntu-latest 53 timeout-minutes: 20 49 54 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 50 55 51 56 steps: 52 57 - name: Checkout repository 53 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.458 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 54 59 55 60 - name: Set up PHP 56 uses: shivammathur/setup-php@ afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.061 uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1 57 62 with: 58 63 php-version: '7.4' … … 66 71 67 72 - name: Install Composer dependencies 68 uses: ramsey/composer-install@ 92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.073 uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0 69 74 with: 70 75 composer-options: "--no-progress --no-ansi --no-interaction" … … 78 83 - name: Run PHP compatibility tests 79 84 run: phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr 85 86 slack-notifications: 87 name: Slack Notifications 88 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 89 needs: [ php-comatibility ] 90 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 91 with: 92 calling_status: ${{ needs.php-compatibility.result == 'success' && 'success' || needs.php-compatibility.result == 'cancelled' && 'cancelled' || 'failure' }} 93 secrets: 94 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 95 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 96 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 97 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
Note: See TracChangeset
for help on using the changeset viewer.