Changeset 53599 for branches/5.6
- Timestamp:
- 06/30/2022 04:35:15 PM (2 years ago)
- Location:
- branches/5.6
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
- 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 reverse-merged: 50446
- Property svn:mergeinfo changed
-
branches/5.6/.github/workflows/coding-standards.yml
r50602 r53599 6 6 push: 7 7 branches: 8 - master9 8 - trunk 10 9 - '3.[89]' … … 15 14 pull_request: 16 15 branches: 17 - master18 16 - trunk 19 17 - '3.[89]' … … 35 33 workflow_dispatch: 36 34 35 # Cancels all previous workflow runs for pull requests that have not completed. 36 concurrency: 37 # The concurrency group contains the workflow name and the branch name for pull requests 38 # or the commit hash for any other events. 39 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 40 cancel-in-progress: true 41 37 42 jobs: 38 43 # Runs PHP coding standards checks. … … 49 54 # - Runs PHPCS on the full codebase with warnings suppressed. 50 55 # - Runs PHPCS on the `tests` directory without warnings suppressed. 51 # - todo: Configure Slack notifications for failing scans.52 56 phpcs: 53 57 name: PHP coding standards 54 58 runs-on: ubuntu-latest 59 timeout-minutes: 20 55 60 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 56 61 57 62 steps: 58 63 - name: Checkout repository 59 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.464 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 60 65 61 66 - name: Set up PHP 62 uses: shivammathur/setup-php@ afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.067 uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1 63 68 with: 64 69 php-version: '7.4' … … 72 77 73 78 - name: Install Composer dependencies 74 uses: ramsey/composer-install@ 92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.079 uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0 75 80 with: 76 81 composer-options: "--no-progress --no-ansi --no-interaction" … … 94 99 # Performs the following steps: 95 100 # - Checks out the repository. 96 # - Logs debug information about the runner container. 97 # - Installs NodeJS 14. 98 # - Sets up caching for NPM. 101 # - Logs debug information about the GitHub Action runner. 102 # - Installs NodeJS. 99 103 # - Logs updated debug information. 100 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.104 # _ Installs NPM dependencies. 101 105 # - Run the WordPress JSHint checks. 102 # - todo: Configure Slack notifications for failing tests.103 106 jshint: 104 107 name: JavaScript coding standards 105 108 runs-on: ubuntu-latest 109 timeout-minutes: 20 106 110 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 107 111 env: … … 110 114 steps: 111 115 - name: Checkout repository 112 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4116 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 113 117 114 118 - name: Log debug information … … 120 124 121 125 - name: Install NodeJS 122 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5126 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 123 127 with: 124 node-version: 14 125 126 - name: Cache NodeJS modules 127 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 128 env: 129 cache-name: cache-node-modules 130 with: 131 # npm cache files are stored in `~/.npm` on Linux/macOS 132 path: ~/.npm 133 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 128 node-version-file: '.nvmrc' 129 cache: npm 134 130 135 131 - name: Log debug information … … 143 139 - name: Run JSHint 144 140 run: npm run grunt jshint 141 142 slack-notifications: 143 name: Slack Notifications 144 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 145 needs: [ phpcs, jshint ] 146 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 147 with: 148 calling_status: ${{ needs.phpcs.result == 'success' && needs.jshint.result == 'success' && 'success' || ( needs.phpcs.result == 'cancelled' || needs.jshint.result == 'cancelled' ) && 'cancelled' || 'failure' }} 149 secrets: 150 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 151 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 152 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 153 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.6/.github/workflows/javascript-tests.yml
r50602 r53599 5 5 push: 6 6 branches: 7 - master8 7 - trunk 9 8 - '3.[89]' … … 14 13 pull_request: 15 14 branches: 16 - master17 15 - trunk 18 16 - '3.[89]' … … 33 31 workflow_dispatch: 34 32 33 # Cancels all previous workflow runs for pull requests that have not completed. 34 concurrency: 35 # The concurrency group contains the workflow name and the branch name for pull requests 36 # or the commit hash for any other events. 37 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 38 cancel-in-progress: true 39 35 40 jobs: 36 41 # Runs the QUnit tests for WordPress. 37 42 # 38 43 # Performs the following steps: 39 # - Cancels all previous workflow runs for pull requests that have not completed.40 44 # - Checks out the repository. 41 # - Logs debug information about the runner container. 42 # - Installs NodeJS 14. 43 # - Sets up caching for NPM. 45 # - Logs debug information about the GitHub Action runner. 46 # - Installs NodeJS. 44 47 # - Logs updated debug information. 45 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.48 # _ Installs NPM dependencies. 46 49 # - Run the WordPress QUnit tests. 47 # - todo: Configure Slack notifications for failing tests.48 50 test-js: 49 51 name: QUnit Tests 50 52 runs-on: ubuntu-latest 53 timeout-minutes: 20 51 54 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 52 55 53 56 steps: 54 - name: Cancel previous runs of this workflow (pull requests only)55 if: ${{ github.event_name == 'pull_request' }}56 uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # v0.8.057 58 57 - name: Checkout repository 59 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.458 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 60 59 61 60 - name: Log debug information … … 67 66 68 67 - name: Install NodeJS 69 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.568 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 70 69 with: 71 node-version: 14 72 73 - name: Cache NodeJS modules 74 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 75 env: 76 cache-name: cache-node-modules 77 with: 78 # npm cache files are stored in `~/.npm` on Linux/macOS 79 path: ~/.npm 80 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 70 node-version-file: '.nvmrc' 71 cache: npm 81 72 82 73 - name: Log debug information … … 90 81 - name: Run QUnit tests 91 82 run: npm run grunt qunit:compiled 83 84 slack-notifications: 85 name: Slack Notifications 86 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 87 needs: [ test-js ] 88 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 89 with: 90 calling_status: ${{ needs.test-js.result == 'success' && 'success' || needs.test-js.result == 'cancelled' && 'cancelled' || 'failure' }} 91 secrets: 92 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 93 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 94 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 95 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.6/.github/workflows/php-compatibility.yml
r50602 r53599 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 }} -
branches/5.6/.github/workflows/phpunit-tests.yml
r51936 r53599 4 4 push: 5 5 branches: 6 - master7 6 - trunk 8 7 - '3.[7-9]' … … 13 12 pull_request: 14 13 branches: 15 - master16 14 - trunk 17 15 - '3.[7-9]' … … 22 20 - cron: '0 0 * * 0' 23 21 22 # Cancels all previous workflow runs for pull requests that have not completed. 23 concurrency: 24 # The concurrency group contains the workflow name and the branch name for pull requests 25 # or the commit hash for any other events. 26 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 27 cancel-in-progress: true 28 24 29 env: 25 30 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} … … 30 35 31 36 jobs: 32 # Sets up the workflow for testing.33 #34 # Performs the following steps:35 # - Cancels all previous workflow runs for pull requests that have not completed.36 setup-workflow:37 name: Setup Workflow38 runs-on: ubuntu-latest39 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}40 41 steps:42 - name: Cancel previous runs of this workflow (pull requests only)43 if: ${{ github.event_name == 'pull_request' }}44 uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # v0.8.045 46 37 # Runs the PHPUnit tests for WordPress. 47 38 # 48 39 # Performs the following steps: 49 # - Set environment variables.40 # - Sets environment variables. 50 41 # - Sets up the environment variables needed for testing with memcached (if desired). 51 # - Installs NodeJS 14. 52 # - Sets up caching for NPM. 42 # - Installs NodeJS. 53 43 # - Installs NPM dependencies 54 44 # - Configures caching for Composer. 55 # - Installs Composer dependencies (if desired).56 # - Logs Docker debug information (about boththe Docker installation within the runner).45 # - Installs Composer dependencies. 46 # - Logs Docker debug information (about the Docker installation within the runner). 57 47 # - Starts the WordPress Docker container. 58 # - Starts the memcached server after the Docker network has been created (if desired). 59 # - Logs WordPress Docker container debug information. 60 # - Logs debug general information. 48 # - Starts the Memcached server after the Docker network has been created (if desired). 49 # - Logs general debug information about the runner. 61 50 # - Logs the running Docker containers. 51 # - Logs debug information from inside the WordPress Docker container. 62 52 # - Logs debug information about what's installed within the WordPress Docker containers. 63 53 # - Install WordPress within the Docker container. … … 66 56 # - Reconnect the directory to the Git repository. 67 57 # - Submit the test results to the WordPress.org host test results. 68 # - todo: Configure Slack notifications for failing tests.69 58 test-php: 70 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }} 59 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }} 71 60 runs-on: ${{ matrix.os }} 61 timeout-minutes: 20 72 62 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 73 63 strategy: … … 118 108 119 109 - name: Checkout repository 120 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4110 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 121 111 122 112 - name: Install NodeJS 123 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5113 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 124 114 with: 125 node-version: 14 126 127 - name: Use cached Node modules 128 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 129 env: 130 cache-name: cache-node-modules 131 with: 132 # npm cache files are stored in `~/.npm` on Linux/macOS 133 path: ~/.npm 134 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 115 node-version-file: '.nvmrc' 116 cache: npm 135 117 136 118 - name: Install Dependencies … … 142 124 143 125 - name: Cache Composer dependencies 144 uses: actions/cache@ 26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4126 uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4 145 127 env: 146 128 cache-name: cache-composer-dependencies … … 241 223 242 224 - name: Checkout the WordPress Test Reporter 243 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/ master' && matrix.report }}244 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4225 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 226 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 245 227 with: 246 228 repository: 'WordPress/phpunit-test-runner' … … 248 230 249 231 - name: Submit test results to the WordPress.org host test results 250 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/ master' && matrix.report }}232 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 251 233 env: 252 234 WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}" 253 235 run: docker-compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php 236 237 slack-notifications: 238 name: Slack Notifications 239 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 240 needs: [ test-php ] 241 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 242 with: 243 calling_status: ${{ needs.test-php.result == 'success' && 'success' || needs.test-php.result == 'cancelled' && 'cancelled' || 'failure' }} 244 secrets: 245 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 246 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 247 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 248 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.6/.github/workflows/test-npm.yml
r50602 r53599 4 4 push: 5 5 branches: 6 - master7 6 - trunk 8 7 - '3.[7-9]' … … 10 9 pull_request: 11 10 branches: 12 - master13 11 - trunk 14 12 - '3.[7-9]' … … 26 24 workflow_dispatch: 27 25 26 # Cancels all previous workflow runs for pull requests that have not completed. 27 concurrency: 28 # The concurrency group contains the workflow name and the branch name for pull requests 29 # or the commit hash for any other events. 30 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 31 cancel-in-progress: true 32 28 33 env: 29 34 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 30 35 31 36 jobs: 32 # Prepares the workflow.33 #34 # Performs the following steps:35 # - Cancels all previous workflow runs for pull requests that have not completed.36 prepare-workflow:37 name: Prepare the workflow38 runs-on: ubuntu-latest39 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}40 41 steps:42 - name: Cancel previous runs of this workflow (pull requests only)43 if: ${{ github.event_name == 'pull_request' }}44 uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # v0.8.045 46 37 # Verifies that installing NPM dependencies and building WordPress works as expected. 47 38 # 48 39 # Performs the following steps: 49 40 # - Checks out the repository. 50 # - Logs debug information about the runner container. 51 # - Installs NodeJS 14. 52 # - Sets up caching for NPM. 53 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 41 # - Logs debug information about the GitHub Action runner. 42 # - Installs NodeJS. 43 # _ Installs NPM dependencies. 54 44 # - Builds WordPress to run from the `build` directory. 55 45 # - Cleans up after building WordPress to the `build` directory. … … 59 49 name: Test NPM on ${{ matrix.os }} 60 50 runs-on: ${{ matrix.os }} 51 timeout-minutes: 20 61 52 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 62 needs: prepare-workflow63 53 strategy: 64 54 fail-fast: false … … 68 58 steps: 69 59 - name: Checkout repository 70 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.460 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 71 61 72 62 - name: Log debug information … … 79 69 80 70 - name: Install NodeJS 81 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.571 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 82 72 with: 83 node-version: 14 84 85 - name: Cache NodeJS modules (Ubuntu & MacOS) 86 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 87 if: ${{ matrix.os != 'windows-latest' }} 88 with: 89 path: ~/.npm 90 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 91 92 - name: Get NPM cache directory (Windows only) 93 if: ${{ matrix.os == 'windows-latest' }} 94 id: npm-cache 95 run: echo "::set-output name=dir::$(npm config get cache)" 96 97 - name: Cache NodeJS modules (Windows only) 98 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 99 if: ${{ matrix.os == 'windows-latest' }} 100 with: 101 path: ${{ steps.npm-cache.outputs.dir }} 102 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 73 node-version-file: '.nvmrc' 74 cache: npm 103 75 104 76 - name: Install Dependencies … … 115 87 116 88 - name: Clean after building in /src 117 run: npm run grunt clean -- dev89 run: npm run grunt clean -- --dev 118 90 119 91 # Verifies that installing NPM dependencies and building WordPress works as expected on MacOS. 120 92 # 121 # This is a separate job in order to that more strict conditions can be used. 93 # This is separate from the job above in order to use stricter conditions about when to run. 94 # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate. 122 95 # 123 96 # Performs the following steps: 124 97 # - Checks out the repository. 125 # - Logs debug information about the runner container. 126 # - Installs NodeJS 14. 127 # - Sets up caching for NPM. 128 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 98 # - Logs debug information about the GitHub Action runner. 99 # - Installs NodeJS. 100 # _ Installs NPM dependencies. 129 101 # - Builds WordPress to run from the `build` directory. 130 102 # - Cleans up after building WordPress to the `build` directory. … … 134 106 name: Test NPM on MacOS 135 107 runs-on: macos-latest 108 timeout-minutes: 20 136 109 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 137 needs: prepare-workflow138 110 steps: 139 111 - name: Checkout repository 140 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4112 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 141 113 142 114 - name: Log debug information … … 149 121 150 122 - name: Install NodeJS 151 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5123 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 152 124 with: 153 node-version: 14 154 155 - name: Cache NodeJS modules 156 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 157 if: ${{ matrix.os != 'windows-latest' }} 158 with: 159 path: ~/.npm 160 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 125 node-version-file: '.nvmrc' 126 cache: npm 161 127 162 128 - name: Install Dependencies … … 173 139 174 140 - name: Clean after building in /src 175 run: npm run grunt clean --dev 141 run: npm run grunt clean -- --dev 142 143 slack-notifications: 144 name: Slack Notifications 145 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 146 needs: [ test-npm, test-npm-macos ] 147 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 148 with: 149 calling_status: ${{ needs.test-npm.result == 'success' && needs.test-npm-macos.result == 'success' && 'success' || ( needs.test-npm.result == 'cancelled' || needs.test-npm-macos.result == 'cancelled' ) && 'cancelled' || 'failure' }} 150 secrets: 151 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 152 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 153 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 154 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.6/.github/workflows/welcome-new-contributors.yml
r50602 r53599 9 9 post-welcome-message: 10 10 runs-on: ubuntu-latest 11 timeout-minutes: 5 11 12 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 12 13
Note: See TracChangeset
for help on using the changeset viewer.