Skip to content

Commit 8ed05ca

Browse files
committed
feat(v2): WIP - v2.x
1 parent 6dd3b40 commit 8ed05ca

File tree

12 files changed

+2976
-1285
lines changed

12 files changed

+2976
-1285
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 2.x
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
name: Test on PHP ${{ matrix.php-versions }}
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php-versions: ['8.1', '8.2', '8.3']
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-versions }}
27+
coverage: none
28+
29+
- name: Install composer and dependencies
30+
uses: php-actions/composer@v6
31+
32+
- name: Run Code Sniffer
33+
run: vendor/bin/phpcs
34+
35+
- name: Run phpstan
36+
run: vendor/bin/phpstan analyse -c phpstan.neon --xdebug --no-progress
37+
38+
- name: Run Pest
39+
run: vendor/bin/pest

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@
1313
"php": "^8.1.0"
1414
},
1515
"require-dev": {
16-
"pestphp/pest": "^2.9",
16+
"pestphp/pest": "^2.31",
1717
"phpstan/phpstan": "^1.10",
18-
"phpunit/phpunit": "^10.2",
19-
"squizlabs/php_codesniffer": "^3.7",
20-
"symfony/var-dumper": "^6.3"
18+
"phpunit/phpunit": "^10.5",
19+
"squizlabs/php_codesniffer": "^3.8",
20+
"symfony/var-dumper": "^7.0"
2121
},
2222
"autoload": {
2323
"psr-4": {
2424
"DomainValidity\\": "src/"
25-
}
25+
},
26+
"files": [
27+
"src/functions.php"
28+
]
2629
},
2730
"autoload-dev": {
2831
"psr-4": {

0 commit comments

Comments
 (0)