Skip to content

Commit c6e7fc5

Browse files
committed
Check code style in Github Actions
1 parent 96d1c70 commit c6e7fc5

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ on:
77
name: build
88

99
jobs:
10+
phpcs:
11+
name: Code style
12+
runs-on: 'ubuntu-latest'
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Install PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.1'
21+
ini-values: memory_limit=-1, date.timezone='UTC'
22+
tools: phpcs
23+
24+
- name: Check production code style
25+
run: phpcs src/ ext/ *.php
26+
27+
- name: Check test code style
28+
run: phpcs tests/ --standard=tests/phpcs.xml
29+
1030
linux:
1131
name: PHP ${{ matrix.php }}-${{ matrix.os }}
1232

0 commit comments

Comments
 (0)