Changeset 55357
- Timestamp:
- 02/17/2023 07:51:16 AM (2 years ago)
- Location:
- branches/6.1/.github/workflows
- Files:
-
- 9 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 -
branches/6.1/.github/workflows/end-to-end-tests.yml
r54680 r55357 36 36 # - Sets environment variables. 37 37 # - Checks out the repository. 38 # - Sets up Node.js. 38 39 # - Logs debug information about the GitHub Action runner. 39 # - Installs NodeJS. 40 # _ Installs NPM dependencies. 40 # - Installs npm dependencies. 41 41 # - Builds WordPress to run from the `build` directory. 42 42 # - Starts the WordPress Docker container. 43 # - Logs general debug information.44 43 # - Logs the running Docker containers. 45 44 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container). … … 60 59 61 60 - name: Checkout repository 62 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 61 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 62 63 - name: Set up Node.js 64 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 65 with: 66 node-version-file: '.nvmrc' 67 cache: npm 63 68 64 69 - name: Log debug information … … 69 74 git --version 70 75 svn --version 71 php --version72 php -i73 76 locale -a 74 77 75 - name: Install NodeJS 76 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 77 with: 78 node-version-file: '.nvmrc' 79 cache: npm 80 81 - name: Install Dependencies 78 - name: Install npm Dependencies 82 79 run: npm ci 83 80 … … 88 85 run: | 89 86 npm run env:start 90 91 - name: General debug information92 run: |93 npm --version94 node --version95 curl --version96 git --version97 svn --version98 87 99 88 - name: Log running Docker containers … … 147 136 steps: 148 137 - name: Dispatch workflow run 149 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2138 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 150 139 with: 151 140 retries: 2 -
branches/6.1/.github/workflows/failed-workflow.yml
r54511 r55357 25 25 steps: 26 26 - name: Rerun a workflow 27 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.227 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 28 28 with: 29 29 retries: 2 -
branches/6.1/.github/workflows/javascript-tests.yml
r54680 r55357 20 20 # Any change to a JavaScript file should run tests. 21 21 - '**.js' 22 # These files configure NPM. Changes could affect the outcome.22 # These files configure npm. Changes could affect the outcome. 23 23 - 'package*.json' 24 24 # This file configures ESLint. Changes could affect the outcome. … … 44 44 # Performs the following steps: 45 45 # - Checks out the repository. 46 # - Sets up Node.js. 46 47 # - Logs debug information about the GitHub Action runner. 47 # - Installs NodeJS. 48 # - Logs updated debug information. 49 # _ Installs NPM dependencies. 48 # - Installs npm dependencies. 50 49 # - Run the WordPress QUnit tests. 51 50 # - Ensures version-controlled files are not modified or deleted. … … 58 57 steps: 59 58 - name: Checkout repository 60 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 59 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 60 61 - name: Set up Node.js 62 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 63 with: 64 node-version-file: '.nvmrc' 65 cache: npm 61 66 62 67 - name: Log debug information … … 67 72 svn --version 68 73 69 - name: Install NodeJS 70 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 71 with: 72 node-version-file: '.nvmrc' 73 cache: npm 74 75 - name: Log debug information 76 run: | 77 npm --version 78 node --version 79 80 - name: Install Dependencies 74 - name: Install npm Dependencies 81 75 run: npm ci 82 76 … … 115 109 steps: 116 110 - name: Dispatch workflow run 117 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2111 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 118 112 with: 119 113 retries: 2 -
branches/6.1/.github/workflows/php-compatibility.yml
r54681 r55357 47 47 # - Logs debug information. 48 48 # - Configures caching for PHP compatibility scans. 49 # - Installs Composer dependencies (use cache if possible).49 # - Installs Composer dependencies. 50 50 # - Make Composer packages available globally. 51 # - Logs PHP_CodeSniffer debug information.52 51 # - Runs the PHP compatibility tests. 52 # - Generate a report for displaying issues as pull request annotations. 53 53 # - Ensures version-controlled files are not modified or deleted. 54 54 php-compatibility: … … 60 60 steps: 61 61 - name: Checkout repository 62 uses: actions/checkout@ 93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.062 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 63 63 64 64 - name: Set up PHP 65 uses: shivammathur/setup-php@ e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.265 uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc # v2.23.0 66 66 with: 67 67 php-version: '7.4' 68 68 coverage: none 69 tools: c omposer, cs2pr69 tools: cs2pr 70 70 71 71 - name: Log debug information 72 72 run: | 73 php --version74 73 composer --version 75 74 … … 81 80 82 81 - name: Cache PHP compatibility scan cache 83 uses: actions/cache@ 9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.1182 uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3 84 83 with: 85 84 path: .cache/phpcompat.json 86 85 key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }} 87 86 87 # Since Composer dependencies are installed using `composer update` and no lock file is in version control, 88 # passing a custom cache suffix ensures that the cache is flushed at least once per week. 88 89 - name: Install Composer dependencies 89 uses: ramsey/composer-install@ f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.090 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 90 91 with: 91 c omposer-options: "--no-progress --no-ansi"92 custom-cache-suffix: ${{ steps.get-date.outputs.date }} 92 93 93 94 - name: Make Composer packages available globally 94 95 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 95 96 - name: Log PHPCS debug information97 run: phpcs -i98 96 99 97 - name: Run PHP compatibility tests … … 136 134 steps: 137 135 - name: Dispatch workflow run 138 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2136 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 139 137 with: 140 138 retries: 2 -
branches/6.1/.github/workflows/phpunit-tests.yml
r54680 r55357 37 37 # Performs the following steps: 38 38 # - Sets environment variables. 39 # - Sets up the environment variables needed for testing with memcached (if desired). 40 # - Installs NodeJS. 41 # - Installs NPM dependencies 42 # - Configures caching for Composer. 39 # - Checks out the repository. 40 # - Sets up Node.js. 41 # - Sets up PHP. 43 42 # - Installs Composer dependencies. 43 # - Installs npm dependencies 44 # - Logs general debug information about the runner. 44 45 # - Logs Docker debug information (about the Docker installation within the runner). 45 46 # - Starts the WordPress Docker container. 46 # - Logs general debug information about the runner.47 47 # - Logs the running Docker containers. 48 # - Logs debug information from inside the WordPress Docker container.49 48 # - Logs debug information about what's installed within the WordPress Docker containers. 50 49 # - Install WordPress within the Docker container. … … 52 51 # - Ensures version-controlled files are not modified or deleted. 53 52 # - Checks out the WordPress Test reporter repository. 54 # - Reconnect the directory to the Git repository.55 53 # - Submit the test results to the WordPress.org host test results. 56 54 test-php: … … 107 105 108 106 - name: Checkout repository 109 uses: actions/checkout@ 93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0110 111 - name: Install NodeJS112 uses: actions/setup-node@ 8c91899e586c5b171469028077307d293428b516 # v3.5.1107 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 108 109 - name: Set up Node.js 110 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 113 111 with: 114 112 node-version-file: '.nvmrc' 115 113 cache: npm 116 114 117 - name: Install Dependencies 115 ## 116 # This allows Composer dependencies to be installed using a single step. 117 # 118 # Since the tests are currently run within the Docker containers where the PHP version varies, 119 # the same PHP version needs to be configured for the action runner machine so that the correct 120 # dependency versions are installed and cached. 121 ## 122 - name: Set up PHP 123 uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc # v2.23.0 124 with: 125 php-version: '${{ matrix.php }}' 126 coverage: none 127 128 # Since Composer dependencies are installed using `composer update` and no lock file is in version control, 129 # passing a custom cache suffix ensures that the cache is flushed at least once per week. 130 - name: Install Composer dependencies 131 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 132 with: 133 custom-cache-suffix: $(/bin/date -u --date='last Mon' "+%F") 134 135 - name: Install npm dependencies 118 136 run: npm ci 119 120 # This date is used to ensure that the Composer cache is refreshed at least once every week.121 # http://man7.org/linux/man-pages/man1/date.1.html122 - name: "Get last Monday's date"123 id: get-date124 run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT125 126 - name: Get Composer cache directory127 id: composer-cache128 run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT129 130 - name: Cache Composer dependencies131 uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11132 env:133 cache-name: cache-composer-dependencies134 with:135 path: ${{ steps.composer-cache.outputs.composer_dir }}136 key: ${{ runner.os }}-php-${{ matrix.php }}-date-${{ steps.get-date.outputs.date }}-composer-${{ hashFiles('**/composer.json') }}137 138 - name: Install Composer dependencies139 run: |140 docker-compose run --rm php composer --version141 142 # Install using `composer update` as there is no `composer.lock` file.143 if [ ${{ env.LOCAL_PHP }} == '8.2-fpm' ]; then144 docker-compose run --rm php composer update --ignore-platform-req=php+145 else146 docker-compose run --rm php composer update147 fi148 149 - name: Docker debug information150 run: |151 docker -v152 docker-compose -v153 154 - name: Start Docker environment155 run: |156 npm run env:start157 137 158 138 - name: General debug information … … 163 143 git --version 164 144 svn --version 145 composer --version 146 locale -a 147 148 - name: Docker debug information 149 run: | 150 docker -v 151 docker-compose -v 152 153 - name: Start Docker environment 154 run: | 155 npm run env:start 165 156 166 157 - name: Log running Docker containers … … 217 208 - name: Checkout the WordPress Test Reporter 218 209 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 219 uses: actions/checkout@ 93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0210 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 220 211 with: 221 212 repository: 'WordPress/phpunit-test-runner' … … 256 247 steps: 257 248 - name: Dispatch workflow run 258 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2249 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 259 250 with: 260 251 retries: 2 -
branches/6.1/.github/workflows/slack-notifications.yml
r54679 r55357 54 54 - name: Determine the status of the previous attempt 55 55 id: previous-attempt-result 56 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.256 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 57 57 with: 58 58 retries: 2 … … 119 119 - name: Get the commit message 120 120 id: current-commit-message 121 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2121 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 122 122 if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }} 123 123 with: -
branches/6.1/.github/workflows/test-coverage.yml
r54680 r55357 33 33 34 34 jobs: 35 # Sets up WordPress for testing or development use.35 # Runs the PHPUnit tests for WordPress. 36 36 # 37 37 # Performs the following steps: 38 38 # - Sets environment variables. 39 39 # - Checks out the repository. 40 # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests). 41 # - Logs debug information about the GitHub Action runner. 42 # - Installs NodeJS. 43 # _ Installs NPM dependencies. 40 # - Sets up Node.js. 41 # - Sets up PHP. 42 # - Installs Composer dependencies. 43 # - Installs npm dependencies 44 # - Logs general debug information about the runner. 44 45 # - Logs Docker debug information (about the Docker installation within the runner). 45 46 # - Starts the WordPress Docker container. 46 # - Logs debug general information.47 47 # - Logs the running Docker containers. 48 # - Logs WordPress Docker container debug information.49 48 # - Logs debug information about what's installed within the WordPress Docker containers. 50 49 # - Install WordPress within the Docker container. … … 52 51 # - Ensures version-controlled files are not modified or deleted. 53 52 # - Upload the single site code coverage report to Codecov.io. 54 # - Run the PHPUnit tests as a multisite .53 # - Run the PHPUnit tests as a multisite installation. 55 54 # - Ensures version-controlled files are not modified or deleted. 56 55 # - Upload the multisite code coverage report to Codecov.io. … … 72 71 73 72 - name: Checkout repository 74 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 73 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 74 75 - name: Set up Node.js 76 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 77 with: 78 node-version-file: '.nvmrc' 79 cache: npm 80 81 ## 82 # This allows Composer dependencies to be installed using a single step. 83 # 84 # Since the tests are currently run within the Docker containers where the PHP version varies, 85 # the same PHP version needs to be configured for the action runner machine so that the correct 86 # dependency versions are installed and cached. 87 ## 88 - name: Set up PHP 89 uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc # v2.23.0 90 with: 91 php-version: '7.4' 92 coverage: none 93 94 # Since Composer dependencies are installed using `composer update` and no lock file is in version control, 95 # passing a custom cache suffix ensures that the cache is flushed at least once per week. 96 - name: Install Composer dependencies 97 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 98 with: 99 custom-cache-suffix: $(/bin/date -u --date='last Mon' "+%F") 100 101 - name: Install npm Dependencies 102 run: npm ci 75 103 76 104 - name: Log debug information … … 83 111 git --version 84 112 svn --version 85 php --version 86 php -i 113 composer --version 87 114 locale -a 88 89 - name: Install NodeJS90 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.191 with:92 node-version-file: '.nvmrc'93 cache: npm94 95 - name: Install Dependencies96 run: npm ci97 98 # This date is used to ensure that the Composer cache is refreshed at least once every week.99 # http://man7.org/linux/man-pages/man1/date.1.html100 - name: "Get last Monday's date"101 id: get-date102 run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT103 104 - name: Get Composer cache directory105 id: composer-cache106 run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT107 108 - name: Cache Composer dependencies109 uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11110 env:111 cache-name: cache-composer-dependencies112 with:113 path: ${{ steps.composer-cache.outputs.composer_dir }}114 key: ${{ runner.os }}-php-${{ matrix.php }}-date-${{ steps.get-date.outputs.date }}-composer-${{ hashFiles('**/composer.json') }}115 116 - name: Install Composer dependencies117 run: |118 docker-compose run --rm php composer --version119 120 # Install using `composer update` as there is no `composer.lock` file.121 docker-compose run --rm php composer update122 115 123 116 - name: Docker debug information … … 129 122 run: | 130 123 npm run env:start 131 132 - name: General debug information133 run: |134 npm --version135 node --version136 curl --version137 git --version138 svn --version139 124 140 125 - name: Log running Docker containers … … 210 195 steps: 211 196 - name: Dispatch workflow run 212 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2197 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 213 198 with: 214 199 retries: 2 -
branches/6.1/.github/workflows/test-npm.yml
r54680 r55357 1 name: Test NPM1 name: Test npm 2 2 3 3 on: … … 16 16 - '[4-9].[0-9]' 17 17 paths: 18 # These files configure NPM. Changes could affect the outcome.18 # These files configure npm. Changes could affect the outcome. 19 19 - 'package*.json' 20 # JavaScript files are built using NPM.20 # JavaScript files are built using npm. 21 21 - '**.js' 22 # CSS and SCSS files are built using NPM.22 # CSS and SCSS files are built using npm. 23 23 - '**.scss' 24 24 - '**.css' … … 38 38 39 39 jobs: 40 # Verifies that installing NPMdependencies and building WordPress works as expected.40 # Verifies that installing npm dependencies and building WordPress works as expected. 41 41 # 42 42 # Performs the following steps: 43 43 # - Checks out the repository. 44 # - Sets up Node.js. 44 45 # - Logs debug information about the GitHub Action runner. 45 # - Installs NodeJS. 46 # _ Installs NPM dependencies. 46 # - Installs npm dependencies. 47 47 # - Builds WordPress to run from the `build` directory. 48 48 # - Cleans up after building WordPress to the `build` directory. … … 52 52 # - Ensures version-controlled files are not modified or deleted. 53 53 test-npm: 54 name: Test NPMon ${{ matrix.os }}54 name: Test npm on ${{ matrix.os }} 55 55 runs-on: ${{ matrix.os }} 56 56 timeout-minutes: 20 … … 63 63 steps: 64 64 - name: Checkout repository 65 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 65 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 66 67 - name: Set up Node.js 68 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 69 with: 70 node-version-file: '.nvmrc' 71 cache: npm 66 72 67 73 - name: Log debug information … … 73 79 svn --version 74 80 75 - name: Install NodeJS 76 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 77 with: 78 node-version-file: '.nvmrc' 79 cache: npm 80 81 - name: Install Dependencies 81 - name: Install npm Dependencies 82 82 run: npm ci 83 83 … … 100 100 run: git diff --exit-code 101 101 102 # Verifies that installing NPMdependencies and building WordPress works as expected on MacOS.102 # Verifies that installing npm dependencies and building WordPress works as expected on MacOS. 103 103 # 104 104 # This is separate from the job above in order to use stricter conditions about when to run. 105 105 # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate. 106 106 # 107 # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is 108 # currently no way to determine the OS being used on a given job. 109 # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability. 110 # 107 111 # Performs the following steps: 108 112 # - Checks out the repository. 113 # - Sets up Node.js. 109 114 # - Logs debug information about the GitHub Action runner. 110 # - Installs NodeJS. 111 # _ Installs NPM dependencies. 115 # - Installs npm dependencies. 112 116 # - Builds WordPress to run from the `build` directory. 113 117 # - Cleans up after building WordPress to the `build` directory. … … 117 121 # - Ensures version-controlled files are not modified or deleted. 118 122 test-npm-macos: 119 name: Test NPMon MacOS123 name: Test npm on MacOS 120 124 runs-on: macos-latest 121 125 timeout-minutes: 30 … … 123 127 steps: 124 128 - name: Checkout repository 125 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 129 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 130 131 - name: Set up Node.js 132 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 133 with: 134 node-version-file: '.nvmrc' 135 cache: npm 126 136 127 137 - name: Log debug information … … 133 143 svn --version 134 144 135 - name: Install NodeJS 136 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 137 with: 138 node-version-file: '.nvmrc' 139 cache: npm 140 141 - name: Install Dependencies 145 - name: Install npm Dependencies 142 146 run: npm ci 143 147 … … 189 193 steps: 190 194 - name: Dispatch workflow run 191 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2195 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 192 196 with: 193 197 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.