Skip to content

Commit e526bc3

Browse files
committed
add github workflow
1 parent 4e9c9ed commit e526bc3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/php.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: PHP
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: '8.2'
17+
extensions: xdebug
18+
coverage: xdebug
19+
tools: composer:v2
20+
21+
- name: Validate composer.json and composer.lock
22+
run: composer validate
23+
24+
- name: Install dependencies
25+
run: composer install --prefer-dist --no-progress
26+
27+
- name: Run PHPCS Lint
28+
run: composer lint
29+
30+
- name: Run PHPUnit tests
31+
run: composer test

0 commit comments

Comments
 (0)