Skip to content

Merge branch 'master' of github.com:mr-linter/php-metrics-collector-m… #5

Merge branch 'master' of github.com:mr-linter/php-metrics-collector-m…

Merge branch 'master' of github.com:mr-linter/php-metrics-collector-m… #5

Workflow file for this run

name: Testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: xdebug
- name: Validate composer.json
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-mr-linter-metrics-collector-manager-$GITHUB_REF-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest && composer dump-autoload -o
- name: Test
run: composer test