Skip to content

Update php-parser

Update php-parser #42

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'windows-latest', 'macOS-latest']
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: /tmp/composer-cache
key: dependencies-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-suggest
- name: Install phpcs
run: composer global require squizlabs/php_codesniffer
- name: Install phpmd
run: composer global require phpmd/phpmd
- name: Run the build
run: ./build.sh