diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7fc5568..7adb713 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup PHP - uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2 with: php-version: ${{ matrix.php }} extensions: mbstring, json diff --git a/tests/IndexTest.php b/tests/IndexTest.php index 8ffd732..3f9c142 100644 --- a/tests/IndexTest.php +++ b/tests/IndexTest.php @@ -16,7 +16,8 @@ function standardFiles(): array foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($root, FilesystemIterator::SKIP_DOTS)) as $file) { if ($file->getExtension() === 'md') { - $files[] = substr($file->getPathname(), strlen($root), -3); + // Index keys use `/`; Windows paths come back with `\`. + $files[] = str_replace('\\', '/', substr($file->getPathname(), strlen($root), -3)); } }