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 29, 2024
commit 7a518eb8f8b358c5f01c20172434b82788f00847
48 changes: 30 additions & 18 deletions 48 .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ jobs:
name: Windows

defaults:
run:
shell: pwsh
run: cmd

runs-on: windows-2022

Expand All @@ -272,6 +271,7 @@ 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 @@ -312,7 +312,6 @@ jobs:
mkdir %APPDATA%\Composer && Copy .github\composer-config.json %APPDATA%\Composer\config.json

- name: Install dependencies
shell: cmd
run: |
SET PATH=c:\php;%PATH%
mkdir %APPDATA%\Composer && copy /Y .github\composer-config.json %APPDATA%\Composer\config.json
Expand All @@ -334,21 +333,34 @@ jobs:
choco install memurai-developer
echo ::endgroup::

# - name: Run tests
# run: |
# $env:Path = 'c:\php;' + $env:Path
# $env:X = 0
# $env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped'

# # minimal extensions
# 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
# php phpunit src\Symfony\Component\HttpClient

# # all extensions
# Copy c:\php\php.ini-max c:\php\php.ini
# 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

- name: Run tests
run: |
$env:Path = 'c:\php;' + $env:Path
$env:X = 0
$env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped'

# minimal extensions
Copy c:\php\php.ini-min c:\php\php.ini
SET PATH=c:\php;%PATH%
SET X=0
SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
copy /Y c:\php\php.ini-min c:\php\php.ini
IF %APPVEYOR_REPO_BRANCH:~-2% neq .x (rm -Rf src\Symfony\Bridge\PhpUnit)
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
php phpunit src\Symfony\Component\HttpClient

# all extensions
Copy c:\php\php.ini-max c:\php\php.ini
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
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows || SET X=!errorlevel!
php phpunit src\Symfony\Component\HttpClient || SET X=!errorlevel!
copy /Y c:\php\php.ini-max c:\php\php.ini
php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows || SET X=!errorlevel!
php phpunit src\Symfony\Component\HttpClient || SET X=!errorlevel!
exit %X%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.