Changeset 55357 for branches/6.1/.github/workflows/coding-standards.yml
- Timestamp:
- 02/17/2023 07:51:16 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1/.github/workflows/coding-standards.yml
r54681 r55357 22 22 - '**.js' 23 23 - '**.php' 24 # These files configure NPM. Changes could affect the outcome.24 # These files configure npm. Changes could affect the outcome. 25 25 - 'package*.json' 26 26 # These files configure Composer. Changes could affect the outcome. … … 49 49 # - Checks out the repository. 50 50 # - Sets up PHP. 51 # - Logs debug information.52 51 # - Configures caching for PHPCS scans. 53 # - Installs Composer dependencies (use cache if possible).52 # - Installs Composer dependencies. 54 53 # - Make Composer packages available globally. 55 # - Logs PHP_CodeSniffer debug information.56 54 # - Runs PHPCS on the full codebase with warnings suppressed. 55 # - Generate a report for displaying issues as pull request annotations. 57 56 # - Runs PHPCS on the `tests` directory without warnings suppressed. 57 # - Generate a report for displaying `test` directory issues as pull request annotations. 58 58 # - Ensures version-controlled files are not modified or deleted. 59 59 phpcs: … … 65 65 steps: 66 66 - name: Checkout repository 67 uses: actions/checkout@ 93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.067 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 68 68 69 69 - name: Set up PHP 70 uses: shivammathur/setup-php@ e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.270 uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc # v2.23.0 71 71 with: 72 72 php-version: '7.4' 73 73 coverage: none 74 tools: composer, cs2pr 75 76 - name: Log debug information 77 run: | 78 php --version 79 composer --version 74 tools: cs2pr 80 75 81 76 # This date is used to ensure that the PHPCS cache is cleared at least once every week. … … 86 81 87 82 - name: Cache PHPCS scan cache 88 uses: actions/cache@ 9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.1183 uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3 89 84 with: 90 85 path: .cache/phpcs.json 91 86 key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }} 92 87 88 # Since Composer dependencies are installed using `composer update` and no lock file is in version control, 89 # passing a custom cache suffix ensures that the cache is flushed at least once per week. 93 90 - name: Install Composer dependencies 94 uses: ramsey/composer-install@ f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.095 with: 96 c omposer-options: "--no-progress --no-ansi"91 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 92 with: 93 custom-cache-suffix: ${{ steps.get-date.outputs.date }} 97 94 98 95 - name: Make Composer packages available globally 99 96 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 100 101 - name: Log PHPCS debug information102 run: phpcs -i103 97 104 98 - name: Run PHPCS on all Core files … … 127 121 # Performs the following steps: 128 122 # - Checks out the repository. 123 # - Sets up Node.js. 129 124 # - Logs debug information about the GitHub Action runner. 130 # - Installs NodeJS. 131 # - Logs updated debug information. 132 # _ Installs NPM dependencies. 125 # - Installs npm dependencies. 133 126 # - Run the WordPress JSHint checks. 134 127 # - Ensures version-controlled files are not modified or deleted. … … 143 136 steps: 144 137 - name: Checkout repository 145 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 138 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 139 140 - name: Set up Node.js 141 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 142 with: 143 node-version-file: '.nvmrc' 144 cache: npm 146 145 147 146 - name: Log debug information … … 152 151 svn --version 153 152 154 - name: Install NodeJS 155 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 156 with: 157 node-version-file: '.nvmrc' 158 cache: npm 159 160 - name: Log debug information 161 run: | 162 npm --version 163 node --version 164 165 - name: Install Dependencies 153 - name: Install npm Dependencies 166 154 run: npm ci 167 155 … … 201 189 steps: 202 190 - name: Dispatch workflow run 203 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2191 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 204 192 with: 205 193 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.