PUBLIQ-1029: Unit tests #166
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: CI | |
on: push | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.2'] | |
name: PHP ${{ matrix.php-versions }} | |
steps: | |
- name: π€ Checkout project | |
uses: actions/checkout@v2 | |
- name: π Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
ini-values: xdebug.mode=coverage | |
tools: composer | |
- name: π¦ Install dependencies | |
run: composer update | |
- name: β Run tests | |
run: composer test | |
cs: | |
runs-on: ubuntu-latest | |
name: Code style | |
steps: | |
- name: π€ Checkout project | |
uses: actions/checkout@v2 | |
- name: π Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: composer | |
- name: π¦ Install dependencies | |
run: composer update | |
- name: β¨ Run code style check | |
run: composer cs | |
phpstan: | |
runs-on: ubuntu-latest | |
name: Static analysis | |
steps: | |
- name: π€ Checkout project | |
uses: actions/checkout@v2 | |
- name: π Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: composer | |
- name: π¦ Install dependencies | |
run: composer update | |
- name: π Run static analysis | |
run: composer phpstan |