This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
Update README.md #7
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: 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 |