Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
name: tests
2
 
3
on:
4
  push:
5
  pull_request:
6
 
7
jobs:
8
  tests:
9
 
10
    runs-on: ubuntu-latest
11
    strategy:
12
      matrix:
13
        php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
14
 
15
    name: PHP ${{ matrix.php }}
16
 
17
    steps:
18
      - name: Checkout code
19
        uses: actions/checkout@v2
20
 
21
      - name: Setup PHP
22
        uses: shivammathur/setup-php@v2
23
        with:
24
          php-version: ${{ matrix.php }}
25
          extensions: curl
26
          tools: composer:v2
27
          coverage: none
28
 
29
      - name: Install PHP 7 dependencies
30
        run: composer update --prefer-dist --no-interaction --no-progress
31
        if: "matrix.php != '8.0'"
32
 
33
      - name: Install PHP 8 dependencies
34
        run: composer update --prefer-dist --no-interaction --no-progress --ignore-platform-reqs
35
        if: "matrix.php == '8.0'"
36
 
37
      - name: Execute tests
38
        run: vendor/bin/phpunit -c tests/phpunit.xml.dist