Changeset 58626 for branches/5.1/.github/workflows/coding-standards.yml
- Timestamp:
- 07/02/2024 07:43:50 PM (12 months ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
- Property svn:mergeinfo changed
/trunk merged: 49264,51673,52179,53552,53895,56464,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/5.1/.github/workflows/coding-standards.yml
r55524 r58626 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 51 uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-php.yml@trunk 52 permissions: 53 contents: read 60 54 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 61 62 steps: 63 - name: Checkout repository 64 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 65 66 - name: Set up PHP 67 uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0 68 with: 69 php-version: '7.2' 70 coverage: none 71 tools: composer, cs2pr 72 73 - name: Log debug information 74 run: | 75 php --version 76 composer --version 77 78 - name: Install Composer dependencies 79 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 80 with: 81 composer-options: "--no-progress --no-ansi" 82 83 - name: Make Composer packages available globally 84 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 85 86 - name: Log PHPCS debug information 87 run: phpcs -i 88 89 - name: Run PHPCBF on all Core files 90 run: phpcbf 55 with: 56 php-version: '7.2' 57 old-branch: true 91 58 92 59 # Runs the JavaScript coding standards checks. 93 #94 # JSHint violations are not currently reported inline with annotations.95 #96 # Performs the following steps:97 # - Checks out the repository.98 # - Logs debug information about the GitHub Action runner.99 # - Installs NodeJS.100 # - Logs updated debug information.101 # _ Installs npm dependencies.102 # - Run the WordPress JSHint checks.103 60 jshint: 104 61 name: JavaScript coding standards 105 runs-on: ubuntu-latest 106 timeout-minutes: 20 62 uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-javascript.yml@trunk 63 permissions: 64 contents: read 107 65 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 108 env:109 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}110 111 steps:112 - name: Checkout repository113 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0114 115 - name: Log debug information116 run: |117 npm --version118 node --version119 git --version120 svn --version121 122 - name: Set up Node.js123 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0124 with:125 node-version-file: '.nvmrc'126 cache: npm127 128 - name: Log debug information129 run: |130 npm --version131 node --version132 133 - name: Install Dependencies134 run: npm ci135 136 - name: Run JSHint137 run: npm run grunt jshint138 66 139 67 slack-notifications: 140 68 name: Slack Notifications 141 69 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 70 permissions: 71 actions: read 72 contents: read 142 73 needs: [ phpcs, jshint ] 143 74 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} … … 153 84 name: Failed workflow tasks 154 85 runs-on: ubuntu-latest 86 permissions: 87 actions: write 155 88 needs: [ phpcs, jshint, slack-notifications ] 156 89 if: | … … 166 99 steps: 167 100 - name: Dispatch workflow run 168 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.0101 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 169 102 with: 170 103 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.