Changeset 58625 for branches/5.2/.github/workflows/coding-standards.yml
- Timestamp:
- 07/02/2024 07:23:50 PM (17 months ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
.github/workflows/coding-standards.yml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
- Property svn:mergeinfo changed
/trunk merged: 49264,51673,52179,53552,53895,56464,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/5.2/.github/workflows/coding-standards.yml
r55523 r58625 41 41 cancel-in-progress: true 42 42 43 # Disable permissions for all available scopes by default. 44 # Any needed permissions should be configured at the job level. 45 permissions: {} 46 43 47 jobs: 44 48 # Runs PHP coding standards checks. 45 #46 # Violations are reported inline with annotations.47 #48 # Performs the following steps:49 # - Checks out the repository.50 # - Sets up PHP.51 # - Logs debug information.52 # - Installs Composer dependencies (use cache if possible).53 # - Make Composer packages available globally.54 # - Logs PHP_CodeSniffer debug information.55 # - Runs PHPCS on the full codebase with warnings suppressed.56 # - Runs PHPCS on the `tests` directory without warnings suppressed.57 49 phpcs: 58 50 name: PHP coding standards 59 runs-on: ubuntu-latest 60 timeout-minutes: 20 51 uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-php.yml@trunk 52 permissions: 53 contents: read 61 54 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 62 63 steps: 64 - name: Checkout repository 65 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 66 67 - name: Set up PHP 68 uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0 69 with: 70 php-version: '7.3' 71 coverage: none 72 tools: composer, cs2pr 73 74 - name: Log debug information 75 run: | 76 php --version 77 composer --version 78 79 - name: Install Composer dependencies 80 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 81 with: 82 composer-options: "--no-progress --no-ansi" 83 84 - name: Make Composer packages available globally 85 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 86 87 - name: Log PHPCS debug information 88 run: phpcs -i 89 90 - name: Run PHPCBF on all Core files 91 run: phpcbf 55 with: 56 php-version: '7.3' 57 old-branch: true 92 58 93 59 # Runs the JavaScript coding standards checks. 94 #95 # JSHint violations are not currently reported inline with annotations.96 #97 # Performs the following steps:98 # - Checks out the repository.99 # - Logs debug information about the GitHub Action runner.100 # - Installs Node.js.101 # - Logs updated debug information.102 # _ Installs npm dependencies.103 # - Run the WordPress JSHint checks.104 60 jshint: 105 61 name: JavaScript coding standards 106 runs-on: ubuntu-latest 107 timeout-minutes: 20 62 uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-javascript.yml@trunk 63 permissions: 64 contents: read 108 65 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 109 env:110 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}111 112 steps:113 - name: Checkout repository114 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0115 116 - name: Log debug information117 run: |118 npm --version119 node --version120 git --version121 svn --version122 123 - name: Install Node.js124 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0125 with:126 node-version-file: '.nvmrc'127 cache: npm128 129 - name: Log debug information130 run: |131 npm --version132 node --version133 134 - name: Install Dependencies135 run: npm ci136 137 - name: Run JSHint138 run: npm run grunt jshint139 66 140 67 slack-notifications: 141 68 name: Slack Notifications 142 69 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 70 permissions: 71 actions: read 72 contents: read 143 73 needs: [ phpcs, jshint ] 144 74 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} … … 154 84 name: Failed workflow tasks 155 85 runs-on: ubuntu-latest 86 permissions: 87 actions: write 156 88 needs: [ phpcs, jshint, slack-notifications ] 157 89 if: | … … 167 99 steps: 168 100 - name: Dispatch workflow run 169 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.0101 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 170 102 with: 171 103 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.