|
10 | 10 |
|
11 | 11 | jobs:
|
12 | 12 |
|
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 }} |
46 | 15 | timeout-minutes: 15
|
47 | 16 | strategy:
|
48 | 17 | matrix:
|
| 18 | + os: [ubuntu-latest, windows-latest] |
49 | 19 | php: [ '8.0', '8.1', '8.2', '8.3' ]
|
| 20 | + runs-on: ${{ matrix.os }} |
50 | 21 | steps:
|
51 | 22 | - name: Set git to use LF
|
52 | 23 | run: |
|
53 | 24 | git config --global core.autocrlf input
|
54 |
| - git config --global core.eol lf |
| 25 | + git config --global core.eol lf |
55 | 26 | - name: Checkout
|
56 | 27 | uses: actions/checkout@v2
|
57 | 28 | - name: Setup PHP
|
|
0 commit comments