Merge branch 'main' into dev #213
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: phpcs | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- ready_for_review | |
jobs: | |
# PHP 7.4 | |
# phpcs-7_4: | |
# timeout-minutes: 10 | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: Setup PHP Action | |
# uses: shivammathur/[email protected] | |
# with: | |
# php-version: '7.4' | |
# tools: composer:v2, phpcs | |
# - name: Install dependencies | |
# working-directory: ./ | |
# run: composer install | |
# - name: Run phpcs | |
# working-directory: ./ | |
# run: vendor/bin/phpcs | |
# PHP 8.0 | |
phpcs-8_0: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP Action | |
uses: shivammathur/[email protected] | |
with: | |
php-version: '8.0' | |
tools: composer:v2, phpcs | |
- name: Install dependencies | |
working-directory: ./ | |
run: composer install | |
- name: Run phpcs | |
working-directory: ./ | |
run: vendor/bin/phpcs | |
# PHP 8.1 | |
phpcs-8_1: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP Action | |
uses: shivammathur/[email protected] | |
with: | |
php-version: '8.1' | |
tools: composer:v2, phpcs | |
- name: Install dependencies | |
working-directory: ./ | |
run: composer install | |
- name: Run phpcs | |
working-directory: ./ | |
run: vendor/bin/phpcs | |
# PHP 8.2 | |
phpcs-8_2: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP Action | |
uses: shivammathur/[email protected] | |
with: | |
php-version: '8.2' | |
tools: composer:v2, phpcs | |
- name: Install dependencies | |
working-directory: ./ | |
run: composer install | |
- name: Run phpcs | |
working-directory: ./ | |
run: vendor/bin/phpcs | |
# PHP 8.3 | |
# phpcs-8_3: | |
# timeout-minutes: 10 | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: Setup PHP Action | |
# uses: shivammathur/[email protected] | |
# with: | |
# php-version: '8.3' | |
# tools: composer:v2, phpcs | |
# - name: Install dependencies | |
# working-directory: ./ | |
# run: composer install | |
# - name: Run phpcs | |
# working-directory: ./ | |
# run: vendor/bin/phpcs |