Skip to content

Commit eb19ecd

Browse files
committed
[CI] Run unit and functional tests under Windows too
1 parent 03c3f9b commit eb19ecd

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/functional-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Functional Tests
22

3+
defaults:
4+
run:
5+
shell: bash
6+
37
on:
48
push:
59
paths:
@@ -12,14 +16,15 @@ on:
1216

1317
jobs:
1418
turbo-tests:
15-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
1620
strategy:
1721
fail-fast: false
1822
matrix:
1923
php-version: ['8.1', '8.2', '8.3', '8.4']
2024
dependency-version: ['']
2125
symfony-version: ['']
2226
minimum-stability: ['stable']
27+
os: ['']
2328
include:
2429
# dev packages (probably not needed to have multiple such jobs)
2530
- minimum-stability: 'dev'
@@ -30,7 +35,9 @@ jobs:
3035
# LTS version of Symfony
3136
- php-version: '8.1'
3237
symfony-version: '6.4.*'
33-
38+
- php-version: '8.1'
39+
symfony-version: '6.4.*'
40+
os: 'windows-latest'
3441
env:
3542
SYMFONY_REQUIRE: ${{ matrix.symfony-version || '>=5.4' }}
3643
services:

.github/workflows/unit-tests.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Unit Tests
22

3+
defaults:
4+
run:
5+
shell: bash
6+
37
on:
48
push:
59
paths-ignore:
@@ -18,14 +22,15 @@ concurrency:
1822

1923
jobs:
2024
php:
21-
runs-on: ubuntu-latest
25+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
2226
strategy:
2327
fail-fast: false
2428
matrix:
2529
php-version: ['8.1', '8.2', '8.3', '8.4']
2630
dependency-version: ['']
2731
symfony-version: ['']
2832
minimum-stability: ['stable']
33+
os: ['']
2934
include:
3035
# dev packages (probably not needed to have multiple such jobs)
3136
- minimum-stability: 'dev'
@@ -36,6 +41,9 @@ jobs:
3641
# LTS version of Symfony
3742
- php-version: '8.1'
3843
symfony-version: '6.4.*'
44+
- php-version: '8.1'
45+
symfony-version: '6.4.*'
46+
os: 'windows-latest'
3947

4048
env:
4149
SYMFONY_REQUIRE: ${{ matrix.symfony-version || '>=5.4' }}
@@ -62,6 +70,10 @@ jobs:
6270
echo "Packages: $PACKAGES"
6371
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
6472
73+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
74+
apt-get install -y parallel
75+
fi
76+
6577
- name: Setup PHP
6678
uses: shivammathur/setup-php@v2
6779
with:

0 commit comments

Comments
 (0)