fix: clone carrier recipients before parsing to prevent shared state … #1225
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: Test | |
| on: push | |
| jobs: | |
| static-analysis: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick | |
| coverage: none | |
| - name: Install Composer dependencies | |
| uses: "ramsey/composer-install@v2" | |
| - name: Lint | |
| run: composer phplint | |
| - name: Coding Standards | |
| run: composer phpcs | |
| - name: PHPStan | |
| run: composer phpstan | |
| phpunit: | |
| name: PHPUnit | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: yarn | |
| - name: Install yarn dependencies | |
| run: yarn install --immutable | |
| - name: Install Composer dependencies | |
| uses: "ramsey/composer-install@v2" | |
| - name: Start wp-env | |
| env: | |
| WP_ENV_PHP_VERSION: ${{ matrix.php }} | |
| run: yarn run wp-env start | |
| - name: Run Tests | |
| run: yarn run test-php | |
| css: | |
| name: CSS Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: yarn | |
| - name: Install yarn dependencies | |
| run: yarn install --immutable | |
| - name: CSS lint | |
| run: yarn lint:css | |
| js: | |
| name: JS Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: yarn | |
| - name: Install yarn dependencies | |
| run: yarn install --immutable | |
| - name: JS lint | |
| run: yarn lint:js |