Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 8 additions & 0 deletions
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 5 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /