Skip to content

Commit

Permalink
Test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed Aug 13, 2024
1 parent 5fd4fe3 commit 7c35540
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/tests/ export-ignore
/.dev-tools/* -linguist-detectable

/.* export-ignore
/tests/ export-ignore
/phpunit.xml export-ignore

* text eol=lf
15 changes: 12 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest ]
php-version: [ '7.4', '8.2' ]
composer_flags: [ '' ]
include:
- os: ubuntu-latest
php-version: '7.4'
composer_flags: '--prefer-lowest'
- os: ubuntu-latest
php-version: '7.4'
- os: ubuntu-latest
php-version: '8.0'
- os: ubuntu-latest
php-version: '8.1'
- os: macos-latest
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 @@ -58,7 +63,11 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: none, opcache
coverage: none

- name: Show PHP modules
run: php -m

- name: Get Composer data directory
id: composer-data
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@composer --working-dir=.dev-tools --quiet install"
],
"test": [
"Composer\\Config::disableProcessTimeout",
"phpunit"
],
"verify": [
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 {
$filesystem->remove(self::TEST_DIR);
} catch (IOException $exception) {
}
}

/**
Expand Down

0 comments on commit 7c35540

Please sign in to comment.