Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
166 lars 1
name: run-tests
2
 
3
on: [push, pull_request]
4
 
5
jobs:
6
    test:
7
        runs-on: ${{ matrix.os }}
8
        strategy:
9
            fail-fast: true
10
            matrix:
11
                os: [ubuntu-latest]
12
                php: [8.2, 8.1 8.0]
13
                laravel: [9.*, 8.*]
14
                stability: [prefer-stable]
15
                include:
16
                    -   laravel: 9.*
17
                        testbench: 7.*
18
                    -   laravel: 8.*
19
                        testbench: 6.23
20
 
21
        name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
22
 
23
        steps:
24
            -   name: Checkout code
25
                uses: actions/checkout@v3
26
 
27
            -   name: Setup PHP
28
                uses: shivammathur/setup-php@v2
29
                with:
30
                    php-version: ${{ matrix.php }}
31
                    extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
32
                    coverage: none
33
 
34
            - name: Setup problem matchers
35
              run: |
36
                  echo "::add-matcher::${{ runner.tool_cache }}/php.json"
37
                  echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38
 
39
            -   name: Install dependencies
40
                run: |
41
                    composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
42
                    composer update --${{ matrix.stability }} --prefer-dist --no-interaction
43
 
44
            -   name: Execute tests
45
                run: vendor/bin/pest