Skip to content

Commit df5baad

Browse files
Update ci.yml
1 parent 040d2c6 commit df5baad

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: ✅ PHP CI (PHPStan + PHPUnit)
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
tests:
11+
name: Run Static Analysis and Tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 8.3
22+
extensions: mbstring, xml, pdo, curl
23+
tools: phpstan, phpunit
24+
25+
- name: Install Dependencies
26+
run: composer install --no-progress --prefer-dist
27+
28+
- name: Run PHPStan
29+
run: phpstan analyse --no-progress --memory-limit=512M
30+
31+
- name: Run PHPUnit
32+
run: vendor/bin/phpunit --testdox

0 commit comments

Comments
 (0)