Skip to content

#112 - class keyword fixer #178

#112 - class keyword fixer

#112 - class keyword fixer #178

Workflow file for this run

name: "Checking the package: testing and linting"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: "Checking the package: testing and linting"
runs-on: ubuntu-20.04
strategy:
matrix:
php: ["8.1", "8.2"]
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run code style checker
run: composer cs
- name: Run tests
run: composer test