ci: refactor workflows

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/877/head
Varun Patil 2023-10-14 02:40:50 -07:00
parent d07e386029
commit 516f8ab01c
2 changed files with 14 additions and 20 deletions

View File

@ -1,16 +0,0 @@
---
name: lint
on:
- push
- pull_request
jobs:
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --dry-run --diff lib

View File

@ -1,13 +1,23 @@
name: pslam
---
name: static analysis
on:
- push
- pull_request
jobs:
pslam:
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --dry-run --diff lib
pslam:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout server
uses: actions/checkout@v3
@ -29,7 +39,7 @@ jobs:
extensions: mbstring, iconv, fileinfo, intl
coverage: none
- name: Run tests
- name: Run Psalm
run: |
cd apps/memories
make install-tools