legacy-ui-checks #2230
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: legacy-ui-checks | |
| on: | |
| schedule: | |
| # Run every 24 hours | |
| - cron: '0 3 * * *' | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to run report' | |
| required: true | |
| default: 'trunk' | |
| type: choice | |
| options: | |
| - trunk | |
| - release_9 | |
| - release_10 | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| all: ${{ steps.changes.outputs.all }} | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: 'Checkout Code' | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 1 | |
| ref: trunk | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| extensions: dom, curl, libxml, mbstring, zip, gd, json, readline, xsl, xml, mysql | |
| tools: composer:v2 | |
| coverage: none | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: "Install npm version 11" | |
| run: sudo npm install -g npm@11 | |
| - name: Install Node dependencies | |
| run: npm clean-install --omit-dev --ignore-scripts | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction --no-progress --ignore-platform-reqs | |
| - name: 'PHStan Custom Rules' | |
| run: scripts/PHPStan/run_legacy_ui_report.sh | |
| - name: 'Store Report' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Reports | |
| path: Reports | |
| retention-days: 30 |