-
Notifications
You must be signed in to change notification settings - Fork 7
29 lines (27 loc) · 1.02 KB
/
code_analyse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# GitHub Action see https://github.com/shivammathur/setup-php
name: Code Analyse
on: [push, pull_request]
jobs:
unit_tests:
name: GPWebPay-core (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: openssl
coverage: none #optional
tools: composer:v2
- name: Composer dependencies
uses: "ramsey/composer-install@v1"
- name: Run Codestyle chceck
run: php vendor/bin/phpcs -p
- name: Run PHPStan
run: php vendor/bin/phpstan analyse