- December 2024 batch update #191
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-22.04 | |
strategy: | |
matrix: | |
php: ["8.2", "8.3"] | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Cache composer dependencies | |
uses: actions/[email protected] | |
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 |