Changeset 53597
- Timestamp:
- 06/30/2022 04:26:30 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 51921,51924-51925,51937,52002,52130,52183,52233,53112,53581-53582,53592
- Property svn:mergeinfo changed
-
branches/5.8/.github/workflows/coding-standards.yml
r51357 r53597 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]' … … 61 59 name: PHP coding standards 62 60 runs-on: ubuntu-latest 61 timeout-minutes: 20 63 62 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 64 63 65 64 steps: 66 65 - name: Checkout repository 67 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.466 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 68 67 69 68 - name: Set up PHP 70 uses: shivammathur/setup-php@ afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.069 uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1 71 70 with: 72 71 php-version: '7.4' … … 80 79 81 80 - name: Install Composer dependencies 82 uses: ramsey/composer-install@ 92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.081 uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0 83 82 with: 84 83 composer-options: "--no-progress --no-ansi --no-interaction" … … 105 104 # Performs the following steps: 106 105 # - Checks out the repository. 107 # - Logs debug information about the runner container.108 # - Installs NodeJS 14.106 # - Logs debug information about the GitHub Action runner. 107 # - Installs NodeJS. 109 108 # - Sets up caching for NPM. 110 109 # - Logs updated debug information. 111 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.110 # _ Installs NPM dependencies. 112 111 # - Run the WordPress JSHint checks. 113 112 # - Ensures version-controlled files are not modified or deleted. 114 # - todo: Configure Slack notifications for failing tests.115 113 jshint: 116 114 name: JavaScript coding standards 117 115 runs-on: ubuntu-latest 116 timeout-minutes: 20 118 117 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 119 118 env: … … 122 121 steps: 123 122 - name: Checkout repository 124 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4123 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 125 124 126 125 - name: Log debug information … … 132 131 133 132 - name: Install NodeJS 134 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5133 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 135 134 with: 136 node-version: 14 137 138 - name: Cache NodeJS modules 139 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 140 env: 141 cache-name: cache-node-modules 142 with: 143 # npm cache files are stored in `~/.npm` on Linux/macOS 144 path: ~/.npm 145 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 135 node-version-file: '.nvmrc' 136 cache: npm 146 137 147 138 - name: Log debug information … … 158 149 - name: Ensure version-controlled files are not modified or deleted 159 150 run: git diff --exit-code 151 152 slack-notifications: 153 name: Slack Notifications 154 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 155 needs: [ phpcs, jshint ] 156 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 157 with: 158 calling_status: ${{ needs.phpcs.result == 'success' && needs.jshint.result == 'success' && 'success' || ( needs.phpcs.result == 'cancelled' || needs.jshint.result == 'cancelled' ) && 'cancelled' || 'failure' }} 159 secrets: 160 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 161 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 162 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 163 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.8/.github/workflows/end-to-end-tests.yml
r51357 r53597 2 2 3 3 on: 4 # The end toend test suite was introduced in WordPress 5.3.4 # The end-to-end test suite was introduced in WordPress 5.3. 5 5 push: 6 6 branches: 7 - master8 7 - trunk 9 8 - '5.[3-9]' … … 14 13 pull_request: 15 14 branches: 16 - master17 15 - trunk 18 16 - '5.[3-9]' … … 34 32 # 35 33 # Performs the following steps: 36 # - Set environment variables.34 # - Sets environment variables. 37 35 # - Checks out the repository. 38 # - Logs debug information about the runner container.39 # - Installs NodeJS 14.36 # - Logs debug information about the GitHub Action runner. 37 # - Installs NodeJS. 40 38 # - Sets up caching for NPM. 41 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.39 # _ Installs NPM dependencies. 42 40 # - Builds WordPress to run from the `build` directory. 43 41 # - Starts the WordPress Docker container. … … 48 46 # - Run the E2E tests. 49 47 # - Ensures version-controlled files are not modified or deleted. 50 # - todo: Configure Slack notifications for failing tests.51 48 e2e-tests: 52 49 name: E2E Tests 53 50 runs-on: ubuntu-latest 51 timeout-minutes: 20 54 52 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 55 53 … … 61 59 62 60 - name: Checkout repository 63 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.461 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 64 62 65 63 - name: Log debug information … … 75 73 76 74 - name: Install NodeJS 77 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.575 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 78 76 with: 79 node-version: 14 80 81 - name: Cache NodeJS modules 82 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 83 env: 84 cache-name: cache-node-modules 85 with: 86 # npm cache files are stored in `~/.npm` on Linux/macOS 87 path: ~/.npm 88 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 77 node-version-file: '.nvmrc' 78 cache: npm 89 79 90 80 - name: Install Dependencies … … 127 117 - name: Ensure version-controlled files are not modified or deleted 128 118 run: git diff --exit-code 119 120 slack-notifications: 121 name: Slack Notifications 122 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 123 needs: [ e2e-tests ] 124 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 125 with: 126 calling_status: ${{ needs.e2e-tests.result == 'success' && 'success' || needs.e2e-tests.result == 'cancelled' && 'cancelled' || 'failure' }} 127 secrets: 128 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 129 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 130 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 131 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.8/.github/workflows/javascript-tests.yml
r51357 r53597 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]' … … 45 43 # Performs the following steps: 46 44 # - Checks out the repository. 47 # - Logs debug information about the runner container.48 # - Installs NodeJS 14.45 # - Logs debug information about the GitHub Action runner. 46 # - Installs NodeJS. 49 47 # - Sets up caching for NPM. 50 48 # - Logs updated debug information. 51 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.49 # _ Installs NPM dependencies. 52 50 # - Run the WordPress QUnit tests. 53 51 # - Ensures version-controlled files are not modified or deleted. 54 # - todo: Configure Slack notifications for failing tests.55 52 test-js: 56 53 name: QUnit Tests 57 54 runs-on: ubuntu-latest 55 timeout-minutes: 20 58 56 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 59 57 60 58 steps: 61 59 - name: Checkout repository 62 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.460 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 63 61 64 62 - name: Log debug information … … 70 68 71 69 - name: Install NodeJS 72 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.570 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 73 71 with: 74 node-version: 14 75 76 - name: Cache NodeJS modules 77 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 78 env: 79 cache-name: cache-node-modules 80 with: 81 # npm cache files are stored in `~/.npm` on Linux/macOS 82 path: ~/.npm 83 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 72 node-version-file: '.nvmrc' 73 cache: npm 84 74 85 75 - name: Log debug information … … 96 86 - name: Ensure version-controlled files are not modified or deleted 97 87 run: git diff --exit-code 88 89 slack-notifications: 90 name: Slack Notifications 91 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 92 needs: [ test-js ] 93 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 94 with: 95 calling_status: ${{ needs.test-js.result == 'success' && 'success' || needs.test-js.result == 'cancelled' && 'cancelled' || 'failure' }} 96 secrets: 97 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 98 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 99 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 100 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.8/.github/workflows/php-compatibility.yml
r51357 r53597 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]' … … 45 43 # - Checks out the repository. 46 44 # - Sets up PHP. 47 # - Logs debug information about the runner container.45 # - Logs debug information about the GitHub Action runner. 48 46 # - Installs Composer dependencies (use cache if possible). 49 47 # - Make Composer packages available globally. … … 52 50 # - Ensures version-controlled files are not modified or deleted. 53 51 # - todo: Configure Slack notifications for failing scans. 54 php-com atibility:52 php-compatibility: 55 53 name: Check PHP compatibility 56 54 runs-on: ubuntu-latest 55 timeout-minutes: 20 57 56 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 58 57 59 58 steps: 60 59 - name: Checkout repository 61 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.460 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 62 61 63 62 - name: Set up PHP 64 uses: shivammathur/setup-php@ afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.063 uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1 65 64 with: 66 65 php-version: '7.4' … … 74 73 75 74 - name: Install Composer dependencies 76 uses: ramsey/composer-install@ 92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.075 uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0 77 76 with: 78 77 composer-options: "--no-progress --no-ansi --no-interaction" … … 89 88 - name: Ensure version-controlled files are not modified or deleted 90 89 run: git diff --exit-code 90 91 slack-notifications: 92 name: Slack Notifications 93 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 94 needs: [ php-compatibility ] 95 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 96 with: 97 calling_status: ${{ needs.php-compatibility.result == 'success' && 'success' || needs.php-compatibility.result == 'cancelled' && 'cancelled' || 'failure' }} 98 secrets: 99 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 100 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 101 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 102 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.8/.github/workflows/phpunit-tests.yml
r51889 r53597 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]' … … 40 38 # 41 39 # Performs the following steps: 42 # - Set environment variables.40 # - Sets environment variables. 43 41 # - Sets up the environment variables needed for testing with memcached (if desired). 44 # - Installs NodeJS 14.42 # - Installs NodeJS. 45 43 # - Sets up caching for NPM. 46 44 # - Installs NPM dependencies 47 45 # - Configures caching for Composer. 48 # - Installs Composer dependencies (if desired).49 # - Logs Docker debug information (about boththe Docker installation within the runner).46 # - Installs Composer dependencies. 47 # - Logs Docker debug information (about the Docker installation within the runner). 50 48 # - Starts the WordPress Docker container. 51 # - Starts the memcached server after the Docker network has been created (if desired). 52 # - Logs WordPress Docker container debug information. 53 # - Logs debug general information. 49 # - Starts the Memcached server after the Docker network has been created (if desired). 50 # - Logs general debug information about the runner. 54 51 # - Logs the running Docker containers. 52 # - Logs debug information from inside the WordPress Docker container. 55 53 # - Logs debug information about what's installed within the WordPress Docker containers. 56 54 # - Install WordPress within the Docker container. … … 60 58 # - Reconnect the directory to the Git repository. 61 59 # - Submit the test results to the WordPress.org host test results. 62 # - todo: Configure Slack notifications for failing tests.63 60 test-php: 64 61 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }} 65 62 runs-on: ${{ matrix.os }} 63 timeout-minutes: 20 66 64 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 67 65 strategy: … … 112 110 113 111 - name: Checkout repository 114 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4112 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 115 113 116 114 - name: Install NodeJS 117 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5115 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 118 116 with: 119 node-version: 14 120 121 - name: Use cached Node modules 122 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 123 env: 124 cache-name: cache-node-modules 125 with: 126 # npm cache files are stored in `~/.npm` on Linux/macOS 127 path: ~/.npm 128 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 117 node-version-file: '.nvmrc' 118 cache: npm 129 119 130 120 - name: Install Dependencies … … 136 126 137 127 - name: Cache Composer dependencies 138 uses: actions/cache@ 26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4128 uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4 139 129 env: 140 130 cache-name: cache-composer-dependencies … … 238 228 239 229 - name: Checkout the WordPress Test Reporter 240 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/ master' && matrix.report }}241 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4230 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 231 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 242 232 with: 243 233 repository: 'WordPress/phpunit-test-runner' … … 245 235 246 236 - name: Submit test results to the WordPress.org host test results 247 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/ master' && matrix.report }}237 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 248 238 env: 249 239 WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}" 250 240 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 241 242 slack-notifications: 243 name: Slack Notifications 244 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 245 needs: [ test-php ] 246 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 247 with: 248 calling_status: ${{ needs.test-php.result == 'success' && 'success' || needs.test-php.result == 'cancelled' && 'cancelled' || 'failure' }} 249 secrets: 250 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 251 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 252 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 253 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.8/.github/workflows/test-npm.yml
r51357 r53597 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]' … … 41 39 # Performs the following steps: 42 40 # - Checks out the repository. 43 # - Logs debug information about the runner container.44 # - Installs NodeJS 14.41 # - Logs debug information about the GitHub Action runner. 42 # - Installs NodeJS. 45 43 # - Sets up caching for NPM. 46 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.44 # _ Installs NPM dependencies. 47 45 # - Builds WordPress to run from the `build` directory. 48 46 # - Cleans up after building WordPress to the `build` directory. … … 54 52 name: Test NPM on ${{ matrix.os }} 55 53 runs-on: ${{ matrix.os }} 54 timeout-minutes: 20 56 55 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 57 56 strategy: … … 62 61 steps: 63 62 - name: Checkout repository 64 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.463 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 65 64 66 65 - name: Log debug information … … 73 72 74 73 - name: Install NodeJS 75 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.574 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 76 75 with: 77 node-version: 14 78 79 - name: Cache NodeJS modules (Ubuntu & MacOS) 80 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 81 if: ${{ matrix.os != 'windows-latest' }} 82 with: 83 path: ~/.npm 84 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 85 86 - name: Get NPM cache directory (Windows only) 87 if: ${{ matrix.os == 'windows-latest' }} 88 id: npm-cache 89 run: echo "::set-output name=dir::$(npm config get cache)" 90 91 - name: Cache NodeJS modules (Windows only) 92 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 93 if: ${{ matrix.os == 'windows-latest' }} 94 with: 95 path: ${{ steps.npm-cache.outputs.dir }} 96 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 76 node-version-file: '.nvmrc' 77 cache: npm 97 78 98 79 - name: Install Dependencies … … 119 100 # Verifies that installing NPM dependencies and building WordPress works as expected on MacOS. 120 101 # 121 # This is a separate job in order to that more strict conditions can be used. 102 # This is separate from the job above in order to use stricter conditions about when to run. 103 # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate. 122 104 # 123 105 # Performs the following steps: 124 106 # - Checks out the repository. 125 # - Logs debug information about the runner container.126 # - Installs NodeJS 14.107 # - Logs debug information about the GitHub Action runner. 108 # - Installs NodeJS. 127 109 # - Sets up caching for NPM. 128 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.110 # _ Installs NPM dependencies. 129 111 # - Builds WordPress to run from the `build` directory. 130 112 # - Cleans up after building WordPress to the `build` directory. … … 136 118 name: Test NPM on MacOS 137 119 runs-on: macos-latest 120 timeout-minutes: 20 138 121 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 139 122 steps: 140 123 - name: Checkout repository 141 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4124 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 142 125 143 126 - name: Log debug information … … 150 133 151 134 - name: Install NodeJS 152 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5135 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 153 136 with: 154 node-version: 14 155 156 - name: Cache NodeJS modules 157 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 158 if: ${{ matrix.os != 'windows-latest' }} 159 with: 160 path: ~/.npm 161 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 137 node-version-file: '.nvmrc' 138 cache: npm 162 139 163 140 - name: Install Dependencies … … 181 158 - name: Ensure version-controlled files are not modified or deleted during building and cleaning 182 159 run: git diff --exit-code 160 161 slack-notifications: 162 name: Slack Notifications 163 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 164 needs: [ test-npm, test-npm-macos ] 165 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 166 with: 167 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' }} 168 secrets: 169 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 170 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 171 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 172 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} -
branches/5.8/.github/workflows/welcome-new-contributors.yml
r50486 r53597 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.