Skip to content

Commit

Permalink
load memcached extension for github workflows; fix dir permisssions
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlmoon committed Mar 22, 2024
1 parent f225a23 commit 35fa8b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: PHPUnit tests
uses: php-actions/phpunit@v3
with:
php_extensions: "pcov yaml"
php_extensions: "pcov yaml memcached"
version: "9.6"
php_version: ${{ matrix.php-versions }}

Expand Down
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class File implements CacheInterface {
public function __construct(string $cluster) {
$this->dir = sys_get_temp_dir()."/caching/{$cluster}";
if (!file_exists($this->dir)) {
mkdir($this->dir, 0o775, TRUE);
mkdir($this->dir, 0775, TRUE);
}
}

Expand Down
6 changes: 0 additions & 6 deletions tests/MemcachedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
*/
class MemcachedTest extends AbstractTestCase {

public function setUp(): void {
if (!class_exists('\\Memcached')) {
$this->markTestSkipped('This test relies on pecl-memcached');
}
}

public static function setUpBeforeClass(): void {

// loop and try to connect as the
Expand Down

0 comments on commit 35fa8b5

Please sign in to comment.