Skip to content

Commit

Permalink
[TASK] Add PHPUnit and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Wolf committed Jun 11, 2024
1 parent 29aa080 commit c59280e
Show file tree
Hide file tree
Showing 5 changed files with 1,678 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:
echo "Xdebug test successful."
fi
- name: Install Composer dependencies
run: |
docker-compose exec -T php-fpm composer install
- name: Run PHPUnit tests
run: |
docker-compose exec -T php-fpm ./vendor/bin/phpunit tests --colors
- name: Test Redis
run: |
sleep 5 # Wait for Redis to fully initialize
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ mariadb/logs/*
mariadb/conf/*
!mariadb/data/.gitignore
!mariadb/logs/.gitignore
!mariadb/conf/.gitignore
!mariadb/conf/.gitignore
vendor
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"phpunit/phpunit": "^11.2.1"
}
}
Loading

0 comments on commit c59280e

Please sign in to comment.