Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimal phpunit run in GitHub Actions #44

Merged
merged 3 commits into from
Jan 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- "7.2"
- "7.3"
- "7.4"
- "8.0"

steps:
- name: Checkout Code
Expand Down Expand Up @@ -51,4 +50,7 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run PHPUnit tests
run: vendor/bin/phpunit --verbose

# vim:ft=yaml:et:ts=2:sw=2
2 changes: 1 addition & 1 deletion tests/Zend/Cache/CommonBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function testGetWithAnExpiredCacheId()
public function testCleanModeAll()
{
if ($this instanceof Zend_Cache_MemcachedBackendTest
&& getenv('TRAVIS')
&& getenv('CI')
) {
$this->markTestSkipped(
'Test randomly fail on Travis CI.'
Expand Down
2 changes: 1 addition & 1 deletion tests/Zend/Cache/FileBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function testCleanModeAllWithHashedDirectoryStructure()

public function testSaveWithABadCacheDir()
{
if (getenv('TRAVIS')) {
if (getenv('CI')) {
$this->markTestSkipped(
'Test randomly fail on Travis CI.'
);
Expand Down
2 changes: 1 addition & 1 deletion tests/Zend/Ldap/ConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function toLdapSerializeProvider(){
);
}

if (getenv('TRAVIS') && version_compare(PHP_VERSION, '5.4.0', '>=')) {
if (getenv('CI') && version_compare(PHP_VERSION, '5.4.0', '>=')) {
return array(
array('N;', null),
array('i:1;', 1),
Expand Down
2 changes: 1 addition & 1 deletion tests/Zend/Session/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ public function testUnsetAllNamespace()
*/
public function testSetExpirationSeconds()
{
if (getenv('TRAVIS')) {
if (getenv('CI')) {
$this->markTestSkipped(
'Test randomly fail on Travis CI.'
);
Expand Down
2 changes: 1 addition & 1 deletion tests/Zend/Soap/AllTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function suite()

//early exit because of segfault in this specific version
//https://github.com/zendframework/zf1/issues/650
if (getenv('TRAVIS') && version_compare(PHP_VERSION, '5.4.37', '=')) {
if (getenv('CI') && version_compare(PHP_VERSION, '5.4.37', '=')) {
return $suite;
}

Expand Down