Skip to content

QC (PR #153)

QC (PR #153) #30

Workflow file for this run

name: QC
run-name: 'QC (PR #${{ github.event.pull_request.number }})'
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_call:
workflow_dispatch:
concurrency:
group: qc-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
phpstan:
name: Static Type Analysis (PHPStan)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v2
- name: run PHPStan
run: composer test:types
phpunit:
name: Unit Tests (PHPUnit)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v2
- name: enable mysql
run: sudo systemctl start mysql.service
- name: create empty database
run: mysql --user=root --password=root --execute="CREATE DATABASE choremanager"
- name: run phpunit
run: composer test:unit
env:
APP_KEY: base64:UmeUVSBI8wMTAzYlIWXQOf/SoBR116L3jozOtnnUAyY=
DB_DATABASE: choremanager
DB_USERNAME: root
DB_PASSWORD: root
standards:
name: Code Style (Pint)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v2
- name: Check style
run: composer test:lint
autoloader:
name: PSR-4 Autoloader
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v2
- name: Check compliance with PSR-4
run: composer test:psr4