Skip to content

Commit 33af9b7

Browse files
committed
Update PHP code check GitHub actions
1 parent 834b731 commit 33af9b7

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

.github/workflows/check-code.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Code check"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
workflow_call:
9+
10+
pull_request:
11+
paths:
12+
- "src/**"
13+
- "tests/**"
14+
- "composer.json"
15+
- "ecs.php"
16+
- "rector.php"
17+
- "phpstan.neon"
18+
- "phpstan-baseline.neon"
19+
- "phpunit.xml"
20+
21+
concurrency:
22+
group: php-sdk-builder-check-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
code:
27+
name: "Code check"
28+
uses: wrk-flow/reusable-workflows/.github/workflows/php-check.yml@b0886c7fa81dab2fb2615c06eb66e94711652056
29+
secrets: inherit
30+
31+
tests:
32+
name: "Run tests"
33+
strategy:
34+
matrix:
35+
php-version: [ "8.1", "8.2" ]
36+
uses: wrk-flow/reusable-workflows/.github/workflows/php-tests.yml@7b6e90f753beb05d979bf4ad39a009b353a7c6cc
37+
secrets: inherit
38+

.github/workflows/check.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)