Skip to content

Commit

Permalink
Patch phpunit during composer install (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop authored Nov 14, 2021
1 parent dbb5b9c commit 7d9628d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-unit-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
tools: composer

- name: Populate vendor
run: '[ -e vendor ] || (composer install && patch -s -p0 < ./tests/phpunit.patch)'
run: '[ -e vendor ] || composer install'

- name: Run Tests With Coverage
run: make deps test-coverage && bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
tools: composer

- name: Populate vendor
run: '[ -e vendor ] || (composer install && patch -s -p0 < ./tests/phpunit.patch)'
run: '[ -e vendor ] || composer install'

- name: Run Tests
run: make deps test
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@
},
"suggest": {
"ext-mbstring": "For better performance"
},
"scripts": {
"post-install-cmd": [
"patch -N -s -p0 < ./tests/phpunit.patch"
]
}
}
}

0 comments on commit 7d9628d

Please sign in to comment.