Skip to content

Commit af4c970

Browse files
committed
add github workflows
1 parent 3ca05f6 commit af4c970

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/code-style.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Code style
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
phpcs:
10+
name: PHPCS
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.1'
20+
21+
- name: Install dependencies
22+
run: composer update --prefer-dist --no-progress --no-suggest
23+
24+
- name: Run script
25+
run: vendor/bin/phpcs

0 commit comments

Comments
 (0)