Skip to content

Commit facb51d

Browse files
committed
ci: setup github action workflows for tests lib
1 parent 81a0307 commit facb51d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: PHP Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Set up PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.2' # Ganti dengan versi PHP yang Anda gunakan
16+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
17+
18+
- name: Install Composer dependencies
19+
run: composer install --prefer-dist --no-dev --optimize-autoloader
20+
21+
- name: Run PHPUnit tests
22+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)