Skip to content

Commit 7d9628d

Browse files
authored
Patch phpunit during composer install (#137)
1 parent dbb5b9c commit 7d9628d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/test-unit-cov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
tools: composer
3333

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

3737
- name: Run Tests With Coverage
3838
run: make deps test-coverage && bash <(curl -s https://codecov.io/bash)

.github/workflows/test-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
tools: composer
3232

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

3636
- name: Run Tests
3737
run: make deps test

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@
4040
},
4141
"suggest": {
4242
"ext-mbstring": "For better performance"
43+
},
44+
"scripts": {
45+
"post-install-cmd": [
46+
"patch -N -s -p0 < ./tests/phpunit.patch"
47+
]
4348
}
44-
}
49+
}

0 commit comments

Comments
 (0)