php-kitchen/yii2-domain

View on GitHub
.github/workflows/php.yml

Summary

Maintainability
Test Coverage
name: Test Latest Changes

on: [push]

jobs:
  build:

    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ubuntu-latest, macOS-latest]
        php-versions: ['7.1', '7.2', '7.3', '7.4']

    name: PHP ${{ matrix.php-versions }} Test changes on ${{ matrix.operating-system }}
    
    steps:
    - uses: actions/checkout@v2

    - name: Install PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-versions }}
    
    - name: Validate composer.json and composer.lock
      run: composer validate

    - name: Install dependencies
      run: composer install --prefer-dist --no-progress --no-suggest

    - name: Run test suite
      run: php vendor/bin/phpunit --configuration specs/phpunit.xml specs