2020-10-01 02:35:21 +02:00
|
|
|
name: "static analysis"
|
|
|
|
|
|
|
|
on: ["pull_request", "push"]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
static-analysis:
|
2020-10-04 19:12:37 +02:00
|
|
|
name: "static analysis"
|
2020-10-01 02:35:21 +02:00
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
|
|
|
- name: "checkout"
|
|
|
|
uses: "actions/checkout@v2"
|
|
|
|
|
|
|
|
- name: "installing PHP"
|
|
|
|
uses: "shivammathur/setup-php@v2"
|
|
|
|
with:
|
|
|
|
php-version: "7.4"
|
|
|
|
ini-values: memory_limit=-1
|
2020-10-01 03:18:53 +02:00
|
|
|
tools: composer:v2, cs2pr
|
2020-10-01 02:35:21 +02:00
|
|
|
extensions: bcmath, mbstring, intl, sodium, json
|
|
|
|
|
|
|
|
- name: "installing dependencies"
|
|
|
|
run: "composer update --no-interaction --no-progress"
|
|
|
|
|
|
|
|
- name: "running static analysis ( psalm )"
|
2021-02-16 00:23:01 +01:00
|
|
|
run: "vendor/bin/psalm --shepherd --stats"
|