Use wp_is_valid_utf8() and wp_scrub_utf8() from the new utf8.php deco… #487
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: PHPUnit Tests | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| pull_request: | |
| jobs: | |
| test: | |
| name: PHP ${{ matrix.php }} | |
| uses: ./.github/workflows/phpunit-tests-run.yml | |
| permissions: | |
| contents: read | |
| secrets: inherit | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] | |
| with: | |
| os: ${{ matrix.os }} | |
| php: ${{ matrix.php }} | |
| phpunit-config: ${{ 'phpunit.xml.dist' }} | |
| # test_wasm: | |
| # name: PHP.wasm 8.2 | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v2 | |
| # - name: Set up PHP | |
| # uses: shivammathur/setup-php@v2 | |
| # with: | |
| # php-version: '8.0' | |
| # tools: composer | |
| # - name: Install Composer dependencies | |
| # run: composer install --no-progress --no-suggest | |
| # - name: Install Node.js | |
| # uses: actions/setup-node@v2 | |
| # with: | |
| # node-version: '23' | |
| # - name: Run tests | |
| # run: | | |
| # npm init -y | |
| # npm install @php-wasm/cli | |
| # PHP=8.2 node --experimental-wasm-jspi --experimental-wasm-stack-switching node_modules/@php-wasm/cli/php-wasm.js vendor/bin/phpunit |