Skip to content

[CI] Run unit and functional tests under Windows too #2816

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

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 9 additions & 2 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Functional Tests

defaults:
run:
shell: bash

on:
push:
paths:
Expand All @@ -12,14 +16,15 @@ on:

jobs:
turbo-tests:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4']
dependency-version: ['']
symfony-version: ['']
minimum-stability: ['stable']
os: ['']
include:
# dev packages (probably not needed to have multiple such jobs)
- minimum-stability: 'dev'
Expand All @@ -30,7 +35,9 @@ jobs:
# LTS version of Symfony
- php-version: '8.1'
symfony-version: '6.4.*'

- php-version: '8.1'
symfony-version: '6.4.*'
os: 'windows-latest'
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version || '>=5.4' }}
services:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Unit Tests

defaults:
run:
shell: bash

on:
push:
paths-ignore:
Expand All @@ -18,14 +22,15 @@ concurrency:

jobs:
php:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4']
dependency-version: ['']
symfony-version: ['']
minimum-stability: ['stable']
os: ['']
include:
# dev packages (probably not needed to have multiple such jobs)
- minimum-stability: 'dev'
Expand All @@ -36,6 +41,9 @@ jobs:
# LTS version of Symfony
- php-version: '8.1'
symfony-version: '6.4.*'
- php-version: '8.1'
symfony-version: '6.4.*'
os: 'windows-latest'

env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version || '>=5.4' }}
Expand All @@ -62,6 +70,10 @@ jobs:
echo "Packages: $PACKAGES"
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV

if [ "${{ matrix.os }}" = "windows-latest" ]; then
apt-get install -y parallel
fi

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down
Loading