Skip to content

Commit c59280e

Browse files
author
Marc Wolf
committed
[TASK] Add PHPUnit and test
1 parent 29aa080 commit c59280e

File tree

5 files changed

+1678
-1
lines changed

5 files changed

+1678
-1
lines changed

.github/workflows/docker-compose-test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ jobs:
4040
echo "Xdebug test successful."
4141
fi
4242
43+
- name: Install Composer dependencies
44+
run: |
45+
docker-compose exec -T php-fpm composer install
46+
47+
- name: Run PHPUnit tests
48+
run: |
49+
docker-compose exec -T php-fpm ./vendor/bin/phpunit tests --colors
50+
4351
- name: Test Redis
4452
run: |
4553
sleep 5 # Wait for Redis to fully initialize

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ mariadb/logs/*
55
mariadb/conf/*
66
!mariadb/data/.gitignore
77
!mariadb/logs/.gitignore
8-
!mariadb/conf/.gitignore
8+
!mariadb/conf/.gitignore
9+
vendor

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"phpunit/phpunit": "^11.2.1"
4+
}
5+
}

0 commit comments

Comments
 (0)