Skip to content

Commit edb1707

Browse files
Add CI for windows tests
1 parent 1563098 commit edb1707

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test-application.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,37 @@ jobs:
5050

5151
- name: Execute test cases
5252
run: vendor/bin/phpunit
53+
54+
55+
php-windows:
56+
name: "PHP Windows ${{ matrix.php-version }} ${{ matrix.dependencies }} ${{ matrix.dev-dependencies && 'dev' }}"
57+
runs-on: windows-latest
58+
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
include:
63+
- php-version: '7.4'
64+
65+
steps:
66+
- name: Checkout project
67+
uses: actions/checkout@v2
68+
69+
- name: Install and configure PHP
70+
uses: shivammathur/setup-php@v2
71+
with:
72+
php-version: ${{ matrix.php-version }}
73+
tools: 'composer:v2'
74+
75+
- name: Allow unstable dependencies
76+
if: matrix.dev-dependencies == true
77+
run: composer config minimum-stability dev
78+
79+
- name: Install dependencies with Composer
80+
uses: ramsey/composer-install@v1
81+
with:
82+
dependency-versions: ${{ matrix.dependencies }}
83+
composer-options: --prefer-dist
84+
85+
- name: Execute test cases
86+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)