There was an error while loading. Please reload this page.
1 parent 96d1c70 commit c6e7fc5Copy full SHA for c6e7fc5
1 file changed
.github/workflows/build.yml
@@ -7,6 +7,26 @@ on:
7
name: build
8
9
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
30
linux:
31
name: PHP ${{ matrix.php }}-${{ matrix.os }}
32
0 commit comments