Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[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 30, 2024
commit 6f65c6f7d5c433515eae39ee1c7fe9634048a468
17 changes: 7 additions & 10 deletions 17 .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ jobs:

defaults:
run:
shell: cmd
shell: pwsh

runs-on: windows-2022

Expand All @@ -274,7 +274,6 @@ jobs:
fetch-depth: 2

- name: Setup PHP
shell: pwsh
run: |
$env:Path = 'c:\php;' + $env:Path
mkdir c:\php && cd c:\php
Expand Down Expand Up @@ -342,14 +341,13 @@ jobs:
run: |
$env:Path = 'c:\php;' + $env:Path
wouterj marked this conversation as resolved.
Show resolved Hide resolved
$env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped'
$x = 0

Copy c:\php\php.ini-min c:\php\php.ini
mv src\Symfony\Component\HttpClient\phpunit.xml.dist src\Symfony\Component\HttpClient\phpunit.xml
php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows || $x = $LASTEXITCODE
php phpunit src\Symfony\Component\HttpClient || $x = $LASTEXITCODE
php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows
php phpunit src\Symfony\Component\HttpClient

if ($x -ne 0) {
if ($Error) {
throw "Test failures"
}

Expand All @@ -361,10 +359,9 @@ jobs:
$x = 0

Copy c:\php\php.ini-max c:\php\php.ini
mv src\Symfony\Component\HttpClient\phpunit.xml.dist src\Symfony\Component\HttpClient\phpunit.xml
php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows -ErrorAction Stop || $x = $LASTEXITCODE
php phpunit src\Symfony\Component\HttpClient -ErrorAction Stop || $x = $LASTEXITCODE
php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows -ErrorAction Stop
php phpunit src\Symfony\Component\HttpClient -ErrorAction Stop

if ($x -ne 0) {
if ($Error) {
throw "Test failures"
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.