8000 [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
Fix PATH?
  • Loading branch information
wouterj committed Oct 28, 2024
commit 1b9c57cc0fbb1b81d504cf8b7562421bdb1b8fb9
6 changes: 4 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ jobs:
runs-on: windows-2022

env:
PATH: 'c:\php;%PATH%'
COMPOSER_NO_INTERACTION: '1'
SYMFONY_DEPRECATIONS_HELPER: 'strict'
ANSICON: '121x90 (121x90)'
Expand All @@ -275,6 +274,7 @@ jobs:
- name: Setup PHP
shell: pwsh
run: |
$env:Path = 'c:\php;' + $env:Path
mkdir c:\php && cd c:\php
iwr -outf php-8.2.0-Win32-vs16-x86.zip https://github.com/symfony/binary-utils/releases/download/v0.1/php-8.2.0-Win32-vs16-x86.zip
7z x php-8.2.0-Win32-vs16-x86.zip -y >nul
Expand Down Expand Up @@ -325,6 +325,7 @@ jobs:

- name: Install dependencies
run: |
SET PATH=c:\php;%PATH%
echo "::group::composer update"
php composer.phar update --no-progress --ansi
echo "::endgroup::"
Expand All @@ -339,6 +340,7 @@ jobs:

- name: Run tests
run: |
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
Expand All @@ -351,4 +353,4 @@ jobs:
php phpunit src\Symfony\Component\HttpClient || SET X=!errorlevel!
exit %X%
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
0