Skip to content

Commit 2e14811

Browse files
simplify github action workflow
1 parent 1e9d5ad commit 2e14811

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,8 @@ name: Build
33
on: [ push, pull_request ]
44

55
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-
266
tests:
27-
name: "Tests"
28-
runs-on: "ubuntu-20.04"
7+
runs-on: "ubuntu-latest"
298
strategy:
309
matrix:
3110
php-version:
@@ -43,6 +22,10 @@ jobs:
4322
- name: "Install dependencies with Composer"
4423
uses: "ramsey/composer-install@v2"
4524

25+
- name: "Run phpcs"
26+
if: ${{ matrix.php-version == '8.3' }}
27+
run: "vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"
28+
4629
- name: "Run PHPUnit"
4730
run: "vendor/bin/phpunit"
4831

0 commit comments

Comments
 (0)