Skip to content

Commit

Permalink
Install PHPUnit with PHIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Jul 28, 2024
1 parent 47b4429 commit b1105ee
Show file tree
Hide file tree
Showing 5 changed files with 1,175 additions and 2,729 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/automated_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,11 @@ jobs:
- name: Install dependencies
uses: ramsey/composer-install@v3

- name: Install PHIVE
uses: szepeviktor/phive@v1

- name: Install PHPUnit with PHIVE
run: ./tools/phive install phpunit

- name: 'Run all PHPUnit tests'
run: composer run phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea
.phpunit
/tools
/var
/vendor
/.php-cs-fixer.cache
4 changes: 4 additions & 0 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpunit" version="^11.2.8" installed="11.2.8" location="./tools/phpunit" copy="false"/>
</phive>
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"require-dev": {
"dg/bypass-finals": "^1.7",
"friendsofphp/php-cs-fixer": "^3.60",
"phpunit/phpunit": "^11.1",
"roave/security-advisories": "dev-latest"
},
"scripts": {
Expand All @@ -46,7 +45,7 @@
"cs-fix": "@cs-fixer-fix",
"cs-fixer-check": "@cs-fixer-fix --dry-run",
"cs-fixer-fix": "vendor/bin/php-cs-fixer fix -vv",
"phpunit": "vendor/bin/phpunit"
"phpunit": "./tools/phpunit"
},
"suggest": {
"staabm/phpstan-todo-by": "For the monitoring of outdated comments when ticket closed and TODO-comment should be removed"
Expand Down
Loading

0 comments on commit b1105ee

Please sign in to comment.