chore(deps): bump github/codeql-action from 3.29.4 to 4.31.9 #372
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: CI (PHP) | |
| on: | |
| push: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-php-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: | |
| - "8.0" | |
| - "8.1" | |
| - "8.2" | |
| - "8.3" | |
| - "8.4" | |
| wpmu: | |
| - "0" | |
| - "1" | |
| wordpress: | |
| - latest | |
| - trunk | |
| services: | |
| mysql: | |
| image: mariadb:latest | |
| env: | |
| MYSQL_ROOT_PASSWORD: root | |
| ports: | |
| - 3306 | |
| options: --health-cmd="healthcheck.sh --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3 | |
| steps: | |
| - name: Install svn | |
| run: sudo apt-get update && sudo apt-get install -y subversion | |
| - name: Check out source code | |
| uses: actions/[email protected] | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Install PHP Dependencies | |
| uses: ramsey/[email protected] | |
| - name: Verify MariaDB connection | |
| run: | | |
| while ! mysqladmin ping -h 127.0.0.1 -P ${{ job.services.mysql.ports[3306] }} --silent; do | |
| sleep 1 | |
| done | |
| timeout-minutes: 3 | |
| - name: Install WP Test Suite | |
| run: ./__tests__/bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports[3306] }} ${{ matrix.wordpress }} | |
| - name: Run tests | |
| run: vendor/bin/phpunit | |
| env: | |
| WP_MULTISITE: ${{ matrix.wpmu }} |