Skip to content

Commit

Permalink
ci: add Windows (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored Sep 2, 2024
1 parent 2132b05 commit e057be4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: '8.3'
tools: composer
coverage: none
- run: composer install
Expand All @@ -34,21 +34,24 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: '8.3'
tools: composer
coverage: none
- run: composer install
- run: composer phpstan
functional:
name: Functional tests
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: '8.3'
tools: composer
coverage: none
- run: composer install
Expand Down
6 changes: 3 additions & 3 deletions src/Command/LinkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$config = Config::createFromJson($monoRepositoryComposer, $baseDir);
$composerFile = $this->getComposerFileAtPath($wd);
$repositories = $this->buildRepositories($config->composerFiles);
$composer = static::$fileContents[$composerFile] = $this->readJsonFile($composerFile);
$composer = self::$fileContents[$composerFile] = $this->readJsonFile($composerFile);

$filesToWrite = [];
$revert = [];
Expand Down Expand Up @@ -172,8 +172,8 @@ private function mapDependencies(array $composer, array $composerFiles, string $
}

yield $package;
static::$fileContents[$composerFiles[$package]] = $this->readJsonFile($composerFiles[$package]);

self::$fileContents[$composerFiles[$package]] = $this->readJsonFile($composerFiles[$package]);
foreach ($this->mapDependencies(static::$fileContents[$composerFiles[$package]], $composerFiles, $key) as $package) {
yield $package;
}
Expand Down

0 comments on commit e057be4

Please sign in to comment.