WordPress.org アセット追加(アイコン・バナー・スクショ)+ Tested up to 7.0(#77) #77
Workflow file for this run
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 Plugin | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: PHP UnitTest | |
| strategy: | |
| matrix: | |
| php: [ '8.1', '8.3' ] # PHP versions to check. | |
| wp: [ 'latest', '6.6' ] # WordPress version to check. | |
| uses: tarosky/workflows/.github/workflows/wp-unit-test.yml@main | |
| with: | |
| php_version: ${{ matrix.php }} | |
| wp_version: ${{ matrix.wp }} | |
| phpcs: | |
| name: Check PHP Codes | |
| uses: tarosky/workflows/.github/workflows/phpcs.yml@main | |
| with: | |
| version: 8.1 | |
| phpstan: | |
| name: PHPStan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| tools: composer | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run PHPStan | |
| run: composer run phpstan | |
| coverage: | |
| name: Code Coverage | |
| needs: [ test ] | |
| uses: tarosky/workflows/.github/workflows/wp-unit-test.yml@main | |
| with: | |
| php_version: '8.1' | |
| wp_version: latest | |
| coverage: true | |
| assets: | |
| name: Check Assets | |
| uses: tarosky/workflows/.github/workflows/npm.yml@main | |
| with: | |
| node_version: 22 | |
| package: package | |
| status-check: | |
| name: Status Check | |
| runs-on: ubuntu-latest | |
| needs: [ test, phpcs, phpstan, assets ] | |
| steps: | |
| - name: Display | |
| run: echo "All Green!" |