10000 [WIP][POC] Run Windows tests on GitHub Action by wouterj · Pull Request #58699 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WIP][POC] Run Windows tests on GitHub Action #58699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 32 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
-
  • Loading branch information
wouterj committed Oct 29, 2024
commit 519775dd793942d4e015fd872a1a84d07a8c7c6e
11 changes: 6 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,19 @@ jobs:
mkdir %APPDATA%\Composer && Copy .github\composer-config.json %APPDATA%\Composer\config.json

- name: Configure environment
shell: cmd # todo: rewrite the parsing of Symfony version to powershell
run: |
SET PATH=c:\php;%PATH%
$env:Path = 'c:\php;' + $env:Path
git config --global user.email ""
git config --global user.name "Symfony"
git config --global init.defaultBranch main
git config --global advice.detachedHead false

FOR /F "tokens=* USEBACKQ" %%F IN (`bash -c "grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -o '[0-9][0-9]*\.[0-9]'"`) DO (SET SYMFONY_VERSION=%%F)

$env:SYMFONY_VERSION = ((Select-String -Path src\Symfony\Component\HttpKernel\Kernel.php -Raw -Pattern ' VERSION = ' | Select-String -Pattern '[0-9][0-9]*\.[0-9]')[0].Matches.Value)
echo $env:$SYMFONY_VERSION
php .github/build-packages.php HEAD^ %SYMFONY_VERSION% src\Symfony\Bridge\PhpUnit
echo SYMFONY_VERSION=$SYMFONY_VERSION >> $GITHUB_ENV
echo COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev >> $GITHUB_ENV
echo "SYMFONY_VERSION=" + $env:SYMFONY_VERSION >> $env:GITHUB_ENV
echo "COMPOSER_ROOT_VERSION=" + $env:SYMFONY_VERSION.x-dev >> $env:GITHUB_ENV

- name: Install dependencies
run: |
Expand Down
Loading
0