fix: default file_types/file_size for file & cropper fields (#658) #1456
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 PHP | |
| on: | |
| push: | |
| branches-ignore: | |
| - "master" | |
| permissions: | |
| contents: read | |
| jobs: | |
| phpunit: | |
| name: Phpunit | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install NPM deps | |
| run: | | |
| npm ci | |
| - name: Install composer deps | |
| run: composer install | |
| - name: Install environment | |
| run: | | |
| npm run wp-env start | |
| - name: Run the tests | |
| run: | | |
| npm run test:unit:php | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
| phpstan: | |
| name: PHPStan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup PHP version | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "7.4" | |
| extensions: simplexml | |
| - name: Checkout source code | |
| uses: actions/checkout@master | |
| - name: Install composer | |
| run: | | |
| composer install --no-progress | |
| - name: Run phpstan | |
| run: composer run phpstan | |
| phpcs: | |
| name: PHPCS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup PHP version | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "7.4" | |
| extensions: simplexml | |
| - name: Checkout source code | |
| uses: actions/checkout@master | |
| - name: Install composer | |
| run: | | |
| composer install --no-progress | |
| - name: Run linter for PHP | |
| run: composer run lint |