Skip to content

Commit f3a8273

Browse files
authored
[CI] Move Windows tests to nightly cron (#8350)
1 parent 975c46e commit f3a8273

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

‎.github/workflows/tests.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-latest, windows-latest]
20+
os: [ubuntu-latest]
2121
php-versions: ['8.4', '8.5']
2222

2323
runs-on: ${{ matrix.os }}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests (Windows)
2+
3+
on:
4+
schedule:
5+
# every 3 hours
6+
- cron: '0 */3 * * *'
7+
workflow_dispatch: null
8+
9+
10+
11+
env:
12+
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
13+
COMPOSER_ROOT_VERSION: "dev-main"
14+
15+
jobs:
16+
tests:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
php-versions: ['8.4', '8.5']
21+
22+
runs-on: windows-latest
23+
timeout-minutes: 4
24+
25+
name: PHP ${{ matrix.php-versions }} tests (windows-latest)
26+
steps:
27+
- uses: actions/checkout@v5
28+
29+
-
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php-versions }}
33+
coverage: none
34+
# to display warning when assert() is called, eg: on direct getArgs() on CallLike
35+
# and check against first class callable strlen(...)
36+
ini-values: zend.assertions=1
37+
38+
- uses: "ramsey/composer-install@v4"
39+
40+
- run: vendor/bin/phpunit --colors

0 commit comments

Comments
 (0)