name: Tests & Linting

on: push

jobs:
  run:
    runs-on: ubuntu-20.04
    strategy:
      matrix:        
        php-versions: ['7.2', '7.3', '7.4']
      fail-fast: false
    name: PHP ${{ matrix.php-versions }}
    steps:
    - name: Checkout
      uses: actions/checkout@v3.0.2

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-versions }}

    - name: Get Composer Cache Directory
      id: composer-cache
      run: |
        echo "::set-output name=dir::$(composer config cache-files-dir)"
    - uses: actions/cache@v3.0.6
      with:
        path: ${{ steps.composer-cache.outputs.dir }}
        key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
        restore-keys: |
          ${{ runner.os }}-composer-
    
    - name: Install dependencies
      run: composer install --no-interaction

    - name: git config (required for PluginsTest)
      run: git config --global user.email you@example.com && git config --global user.name you

    - name: PHPUnit tests
      run: vendor/bin/phpunit
    
    - name: Linting
      run: vendor/bin/php-cs-fixer fix --dry-run -v --diff
        
        
name: Tests & Linting

on: push

jobs:
  run:
    runs-on: ubuntu-20.04
    strategy:
      matrix:        
        php-versions: ['7.2', '7.3', '7.4']
      fail-fast: false
    name: PHP ${{ matrix.php-versions }}
    steps:
    - name: Checkout
      uses: actions/checkout@v3.0.2

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-versions }}

    - name: Get Composer Cache Directory
      id: composer-cache
      run: |
        echo "::set-output name=dir::$(composer config cache-files-dir)"
    - uses: actions/cache@v3.0.7
      with:
        path: ${{ steps.composer-cache.outputs.dir }}
        key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
        restore-keys: |
          ${{ runner.os }}-composer-
    
    - name: Install dependencies
      run: composer install --no-interaction

    - name: git config (required for PluginsTest)
      run: git config --global user.email you@example.com && git config --global user.name you

    - name: PHPUnit tests
      run: vendor/bin/phpunit
    
    - name: Linting
      run: vendor/bin/php-cs-fixer fix --dry-run -v --diff
        
        
Bump actions/cache from 3.0.6 to 3.0.7
Bump actions/cache from 3.0.6 to 3.0.7

Bumps [actions/cache](https://github.com/actions/cache) from 3.0.6 to 3.0.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.6...v3.0.7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@github.com>