Skip to content

Commit b646ac8

Browse files
committed
added tests on windows
1 parent e8f4001 commit b646ac8

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

.github/workflows/ci.yml

+5-34
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,19 @@ on:
1010

1111
jobs:
1212

13-
tests-ubuntu:
14-
name: Tests Ubuntu - PHP ${{ matrix.php }} ${{ matrix.dependency-version }}
15-
runs-on: ubuntu-latest
16-
timeout-minutes: 15
17-
strategy:
18-
matrix:
19-
php: [ '8.0', '8.1', '8.2', '8.3' ]
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v2
23-
- name: Setup PHP
24-
uses: shivammathur/setup-php@v2
25-
with:
26-
php-version: ${{ matrix.php }}
27-
tools: composer:v2
28-
coverage: none
29-
# Enable apcu
30-
extensions: apcu
31-
ini-values: apc.enable_cli=1, opcache.enable=1, opcache.jit=tracing, opcache.jit_buffer_size=128M
32-
- name: Cache Composer dependencies
33-
uses: actions/cache@v2
34-
with:
35-
path: ~/.composer/cache
36-
key: php-${{ matrix.php }}-composer-locked-${{ hashFiles('composer.lock') }}
37-
restore-keys: php-${{ matrix.php }}-composer-locked-
38-
- name: Install PHP dependencies
39-
run: composer update ${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress
40-
- name: PHPUnit
41-
run: vendor/bin/phpunit
42-
43-
tests-windows:
44-
name: Tests Windows - PHP ${{ matrix.php }} ${{ matrix.dependency-version }}
45-
runs-on: windows-2022
13+
tests:
14+
name: Tests ${{ matrix.os }} - PHP ${{ matrix.php }}
4615
timeout-minutes: 15
4716
strategy:
4817
matrix:
18+
os: [ubuntu-latest, windows-latest]
4919
php: [ '8.0', '8.1', '8.2', '8.3' ]
20+
runs-on: ${{ matrix.os }}
5021
steps:
5122
- name: Set git to use LF
5223
run: |
5324
git config --global core.autocrlf input
54-
git config --global core.eol lf
25+
git config --global core.eol lf
5526
- name: Checkout
5627
uses: actions/checkout@v2
5728
- name: Setup PHP

0 commit comments

Comments
 (0)