Changeset 59577 for trunk/.github/workflows/reusable-performance.yml
- Timestamp:
- 01/06/2025 10:29:09 AM (2 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/reusable-performance.yml
r59571 r59577 2 2 # A reusable workflow that runs the performance test suite. 3 3 ## 4 name: Performance Tests4 name: Run performance Tests 5 5 6 6 on: … … 24 24 memcached: 25 25 description: 'Whether to enable memcached.' 26 required: false 27 type: 'boolean' 28 default: false 29 multisite: 30 description: 'Whether to use Multisite.' 26 31 required: false 27 32 type: 'boolean' … … 54 59 LOCAL_PHP_MEMCACHED: ${{ inputs.memcached }} 55 60 LOCAL_PHP: ${{ inputs.php-version }}${{ 'latest' != inputs.php-version && '-fpm' || '' }} 61 LOCAL_MULTISITE: ${{ inputs.multisite }} 56 62 57 63 jobs: … … 66 72 # - Build WordPress. 67 73 # - Start Docker environment. 74 # - Install object cache drop-in. 68 75 # - Log running Docker containers. 69 76 # - Docker debug information. 70 77 # - Install WordPress. 78 # - Enable themes on Multisite. 71 79 # - Install WordPress Importer plugin. 72 80 # - Import mock data. … … 99 107 # - Ensure version-controlled files are not modified or deleted. 100 108 performance: 101 name: Run tests109 name: ${{ inputs.multisite && 'Multisite' || 'Single site' }} / ${{ inputs.memcached && 'Memcached' || 'Default' }} 102 110 runs-on: ubuntu-latest 103 111 permissions: … … 167 175 run: npm run env:install 168 176 177 - name: Enable themes on Multisite 178 if: ${{ inputs.multisite }} 179 run: | 180 npm run env:cli -- theme enable twentytwentyone --network --path=/var/www/${{ env.LOCAL_DIR }} 181 npm run env:cli -- theme enable twentytwentythree --network --path=/var/www/${{ env.LOCAL_DIR }} 182 npm run env:cli -- theme enable twentytwentyfour --network --path=/var/www/${{ env.LOCAL_DIR }} 183 npm run env:cli -- theme enable twentytwentyfive --network --path=/var/www/${{ env.LOCAL_DIR }} 184 169 185 - name: Install WordPress Importer plugin 170 186 run: npm run env:cli -- plugin install wordpress-importer --activate --path=/var/www/${{ env.LOCAL_DIR }} … … 291 307 if: always() 292 308 with: 293 name: performance-artifacts${{ inputs.m emcached && '-memcached' || '' }}-${{ github.run_id }}309 name: performance-artifacts${{ inputs.multisite && '-multisite' || '' }}${{ inputs.memcached && '-memcached' || '' }}-${{ github.run_id }} 294 310 path: artifacts 295 311 if-no-files-found: ignore … … 304 320 - name: Set the base sha 305 321 # Only needed when publishing results. 306 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' && ! inputs.memcached }}322 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' && ! inputs.memcached && ! inputs.multisite }} 307 323 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 308 324 id: base-sha … … 315 331 - name: Set commit details 316 332 # Only needed when publishing results. 317 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' && ! inputs.memcached }}333 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' && ! inputs.memcached && ! inputs.multisite }} 318 334 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 319 335 id: commit-timestamp … … 326 342 - name: Publish performance results 327 343 # Only publish results on pushes to trunk. 328 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' && ! inputs.memcached }}344 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' && ! inputs.memcached && ! inputs.multisite }} 329 345 env: 330 346 BASE_SHA: ${{ steps.base-sha.outputs.result }}
Note: See TracChangeset
for help on using the changeset viewer.