Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Update README.md

Update README.md #7

name: Quality Assurance
on: [push, pull_request]
jobs:
quality-assurance:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: phpcs
- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: |
composer install
- name: Check Code Quality (PHP Code Sniffer)
run: |
composer lint
- name: Static Code Analysis (PHPStan)
run: |
composer lint
- name: Unit Tests (PHPUnit)
run: |
composer test