2023-10-14 09:40:50 +00:00
|
|
|
---
|
|
|
|
name: static analysis
|
2023-10-14 09:13:34 +00:00
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
2023-10-16 00:39:35 +00:00
|
|
|
php-lint:
|
|
|
|
name: PHP Lint
|
2023-10-14 09:40:50 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-10-14 09:13:34 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout server
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
repository: nextcloud/server
|
|
|
|
ref: stable27
|
|
|
|
|
|
|
|
- name: Checkout the app
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
path: apps/memories
|
|
|
|
|
|
|
|
- name: Set up php ${{ matrix.php-versions }}
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: 8.1
|
|
|
|
tools: phpunit
|
|
|
|
extensions: mbstring, iconv, fileinfo, intl
|
|
|
|
coverage: none
|
|
|
|
|
2023-10-16 00:39:35 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
working-directory: apps/memories
|
2023-10-14 09:13:34 +00:00
|
|
|
run: |
|
|
|
|
make install-tools
|
2023-10-16 00:39:35 +00:00
|
|
|
|
|
|
|
- name: Run Psalm
|
|
|
|
working-directory: apps/memories
|
|
|
|
run: |
|
2023-10-16 00:42:00 +00:00
|
|
|
vendor/bin/psalm --no-cache --shepherd --stats --threads=max lib
|
2023-10-14 19:50:28 +00:00
|
|
|
|
2023-10-16 00:39:35 +00:00
|
|
|
- name: Run PHP-CS-Fixer
|
|
|
|
working-directory: apps/memories
|
|
|
|
run: |
|
2023-10-16 00:42:00 +00:00
|
|
|
vendor/bin/php-cs-fixer fix --dry-run --diff
|
2023-10-16 00:39:35 +00:00
|
|
|
|
|
|
|
vue-lint:
|
2023-10-16 00:31:01 +00:00
|
|
|
name: Vue Lint
|
2023-10-16 00:21:37 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout the app
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-10-16 00:33:19 +00:00
|
|
|
- name: Install dependencies
|
2023-10-16 00:31:01 +00:00
|
|
|
run: npm ci
|
2023-10-16 00:21:37 +00:00
|
|
|
|
|
|
|
- name: Run vue-tsc
|
|
|
|
run: npx vue-tsc --noEmit --skipLibCheck
|
2023-10-16 00:31:01 +00:00
|
|
|
|
|
|
|
- name: Run Prettier
|
|
|
|
run: npx prettier src --check
|