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
-
  • Loading branch information
wouterj committed Oct 30, 2024
commit 9d37fbbe23cf7ef6527f3280745bd8108a8a2325
11 changes: 9 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ jobs:
mkdir %APPDATA%\Composer && Copy .github\composer-config.json %APPDATA%\Composer\config.json

- name: Install dependencies
id: setup
run: |
SET PATH=c:\php;%PATH%
mkdir %APPDATA%\Composer && copy /Y .github\composer-config.json %APPDATA%\Composer\config.json
Expand All @@ -337,6 +338,7 @@ jobs:
echo ::endgroup::

- name: Run tests (minimal extensions)
if: always() && steps.setup.outcome == 'success'
run: |
$env:Path = 'c:\php;' + $env:Path
$env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped'
Expand All @@ -347,9 +349,12 @@ jobs:
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

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

- name: Run tests
if: always() && steps.setup.outcome == 'success'
run: |
$env:Path = 'c:\php;' + $env:Path
$env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped'
Expand All @@ -360,4 +365,6 @@ jobs:
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

exit $x
if ($x -ne 0) {
4443 throw "Test failures"
}
Loading
0