Skip to content

Commit 43c0a0c

Browse files
committed
Trying GitHub workflow
1 parent 90be7f0 commit 43c0a0c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/lint.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
phpcs:
7+
runs-on: ubuntu-latest
8+
name: PHP_CodeSniffer
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.3'
16+
tools: cs2pr
17+
18+
- name: Install dependencies
19+
run: composer install
20+
21+
- name: Run phpcs
22+
run: vendor/bin/phpcs -q --report=checkstyle | cs2pr

0 commit comments

Comments
 (0)