Introduce Post Types Select #11
Workflow file for this run
This file contains 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: PHP Quality Assurance | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.php' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '--skip ci') && !github.event.pull_request.draft" | |
strategy: | |
matrix: | |
php-versions: [ '8.0' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Check syntax error in sources | |
run: find ./src/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l | |
- name: Install dependencies | |
uses: "ramsey/composer-install@v1" | |
- name: Check code styles | |
run: composer cs |