Skip to content

Commit bd1b91d

Browse files
staabmantonmedv
andauthored
Lint sources on PHP 8.2 via Github Action (#4018)
* Lint sources on PHP 8.2 via Github Action (#4016) * Update lint.yml * Update lint.yml --------- Co-authored-by: Anton Medvedev <anton@medv.io>
1 parent ca82aeb commit bd1b91d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php-versions: [ '8.2' ]
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
tools: cs2pr, parallel-lint
23+
24+
- name: Lint sources
25+
run: composer exec --no-interaction -- parallel-lint bin/ contrib/ recipe/ src/ tests/ --checkstyle | cs2pr

0 commit comments

Comments
 (0)