mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-13 03:06:38 +02:00
33 lines
635 B
YAML
33 lines
635 B
YAML
name: Linters
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- galactica
|
|
pull_request:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
linters:
|
|
name: Linters
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Composer install
|
|
uses: php-actions/composer@v5
|
|
with:
|
|
command: install
|
|
args: --ignore-platform-reqs --no-scripts
|
|
version: 2
|
|
php_version: 8.0
|
|
- name: PHPStan
|
|
run: ./vendor/bin/phpstan analyse
|
|
- name: PHP Code Sniffer
|
|
run: ./vendor/bin/phpcs
|