Skip to content

#132 - ordered class elements (#133) #187

#132 - ordered class elements (#133)

#132 - ordered class elements (#133) #187

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.2", "8.3"]
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