File: tests.yml

package info (click to toggle)
php-symfony-polyfill 1.33.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,456 kB
  • sloc: php: 127,248; makefile: 70
file content (52 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Tests

on:
    push:
    pull_request:

jobs:

    test:
        name: PHPUnit Tests
        runs-on: ubuntu-latest

        env:
            COMPOSER_ROOT_VERSION: 1.x-dev

        strategy:
            matrix:
                include:
                    - php: '7.2'
                    - php: '7.3'
                    - php: '7.4'
                    - php: '8.0'
                    - php: '8.1'
                    - php: '8.2'
                    - php: '8.3'
                    - php: '8.4'
                    - php: '8.5'
            fail-fast: false

        steps:
            -   name: Checkout
                uses: actions/checkout@v4

            -   name: Setup PHP
                uses: shivammathur/setup-php@v2
                with:
                    coverage: "none"
                    extensions: "apcu, intl-73.2, mbstring, odbc, uuid"
                    ini-values: "memory_limit=-1, session.gc_probability=0, apc.enable_cli=1"
                    php-version: "${{ matrix.php }}"
                    tools: "composer:v2"

            -   name: Install dependencies
                run: |
                    composer --prefer-source --no-progress --ansi install
                    ./phpunit install

            -   name: Run tests
                run: |
                    ok=0
                    ./phpunit || ok=1
                    [[ "${{ matrix.mode }}" = experimental ]] || (exit $ok)