Skip to content

Commit

Permalink
Test on Windows (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored Aug 14, 2024
1 parent 042ecaf commit fe4ada2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
php-version: '8.2'
- os: ubuntu-latest
php-version: '8.2'
- os: windows-latest
php-version: '8.2'
- os: ubuntu-latest
php-version: '8.3'

Expand All @@ -62,7 +64,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: none, ctype, curl, dom, json, mbstring, opcache, tokenizer, xml, xmlwriter
extensions: none, ctype, curl, dom, json, mbstring, opcache, openssl, tokenizer, xml, xmlwriter
coverage: none

- name: Get Composer data directory
Expand Down
6 changes: 5 additions & 1 deletion tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Process\Process;

Expand All @@ -32,7 +33,10 @@ public static function setUpBeforeClass(): void
public static function tearDownAfterClass(): void
{
$filesystem = new Filesystem();
$filesystem->remove(self::TEST_DIR);
try { // Workaround for running on Windows
$filesystem->remove(self::TEST_DIR);
} catch (IOException $exception) {
}
}

/**
Expand Down

0 comments on commit fe4ada2

Please sign in to comment.