-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2 types de tests: unitaire: tester une classe seule sans dépendance = github workflow phpunit.yml intégration: tester jeedom en fonctionnement, utilise docker pour démarrer la bdd et le container jeedom = github workflow docker-test.yml
- Loading branch information
Showing
66 changed files
with
2,013 additions
and
1,774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.git | ||
/vendor | ||
/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# tests unitaires exécutés directement dans le contexte courant | ||
# Aucune bdd, Jeedom non démarré | ||
name: Standalone PHPUnit | ||
|
||
on: | ||
push: | ||
# only trigger CI when push on following branches | ||
branches: | ||
- feat/run_phpunit | ||
- alpha | ||
pull_request: | ||
branches: | ||
- alpha | ||
|
||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# checkout repo | ||
# https://github.com/marketplace/actions/checkout | ||
- uses: actions/checkout@v4 | ||
# composer installation | ||
# https://github.com/marketplace/actions/composer-php-actions | ||
- name: composer installation | ||
uses: php-actions/composer@v6 | ||
# trigger phpunit using custom xml configuration | ||
# https://github.com/marketplace/actions/phpunit-php-actions | ||
- name: run standalone phpunit | ||
uses: php-actions/phpunit@v4 | ||
with: | ||
php_version: 7.4 | ||
testsuite: unit | ||
php_extensions: xdebug pdo_mysql | ||
coverage_clover: coverage/clover.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ tmp/* | |
|
||
!.htaccess | ||
.env | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.