File tree 1 file changed +6
-22
lines changed
1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -3,29 +3,8 @@ name: Build
3
3
on : [ push, pull_request ]
4
4
5
5
jobs :
6
- coding-standards :
7
- name : " Coding Standards"
8
- runs-on : " ubuntu-latest"
9
- steps :
10
- - name : " Checkout"
11
- uses : " actions/checkout@v2"
12
-
13
- - name : " Install PHP"
14
- uses : " shivammathur/setup-php@v2"
15
- with :
16
- coverage : " none"
17
- php-version : " 8.3"
18
- tools : " cs2pr"
19
-
20
- - name : " Install dependencies with Composer"
21
- uses : " ramsey/composer-install@v2"
22
-
23
- - name : " Run PHP_CodeSniffer"
24
- run : " vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"
25
-
26
6
tests :
27
- name : " Tests"
28
- runs-on : " ubuntu-20.04"
7
+ runs-on : " ubuntu-latest"
29
8
strategy :
30
9
matrix :
31
10
php-version :
@@ -39,10 +18,15 @@ jobs:
39
18
uses : " shivammathur/setup-php@v2"
40
19
with :
41
20
php-version : " ${{ matrix.php-version }}"
21
+ tools : " cs2pr"
42
22
43
23
- name : " Install dependencies with Composer"
44
24
uses : " ramsey/composer-install@v2"
45
25
26
+ - name : " Run phpcs"
27
+ if : ${{ matrix.php-version == '8.3' }}
28
+ run : " vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"
29
+
46
30
- name : " Run PHPUnit"
47
31
run : " vendor/bin/phpunit"
48
32
You can’t perform that action at this time.
0 commit comments