pay/.github/workflows/Linter.yml
2021-07-17 18:21:42 +08:00

46 lines
1.1 KiB
YAML

name: Coding Style
on: [push, pull_request]
jobs:
php_cs_fixer:
name: php_cs_fixer
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php-version:
- 8.0
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install Dependencies
run: composer install --no-progress
- name: Run PHP-CS-Fixer
run: composer cs-fix
php_stan:
name: php_stan
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php-version:
- 7.3
- 7.4
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install Dependencies
run: composer install --no-progress
- name: Run PHP-Stan
run: composer analyse