Skip to content

Commit c53bbca

Browse files
committed
Setup CI
1 parent 507fd1b commit c53bbca

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
php: [8.0, 8.1]
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php }}
21+
tools: phpcs, phpstan
22+
23+
- name: Validate composer.json
24+
run: composer validate
25+
26+
- name: Install dependencies
27+
run: composer install
28+
29+
- name: Code style
30+
run: phpcs src/
31+
32+
- name: Static analysis
33+
run: phpstan analyze --level=8 src/

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
"php": "^8.0",
1717
"ext-dom": "*",
1818
"codeception/lib-web": "^1.0",
19+
"phpunit/phpunit": "^9.5 | ^10.0",
1920
"symfony/css-selector": ">=4.4.24 <7.0"
2021
},
21-
"require-dev": {
22-
"phpunit/phpunit": "^9.5 | ^10.0"
23-
},
2422
"conflict": {
2523
"codeception/codeception": "<5.0.0-alpha3"
2624
},

0 commit comments

Comments
 (0)