2023-10-14 09:40:50 +00:00
|
|
|
---
|
|
|
|
name: static analysis
|
2023-10-14 09:13:34 +00:00
|
|
|
on:
|
2023-10-20 18:27:00 +00:00
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2023-11-01 16:43:27 +00:00
|
|
|
- 'go-vod/**'
|
2023-11-01 17:32:50 +00:00
|
|
|
- 'android/**'
|
2023-10-20 18:27:00 +00:00
|
|
|
- 'mkdocs.yml'
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2023-11-01 16:43:27 +00:00
|
|
|
- 'go-vod/**'
|
2023-11-01 17:32:50 +00:00
|
|
|
- 'android/**'
|
2023-10-20 18:27:00 +00:00
|
|
|
- 'mkdocs.yml'
|
|
|
|
- '**.md'
|
2023-10-14 09:13:34 +00:00
|
|
|
|
|
|
|
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
|
2023-12-03 05:58:28 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-10-14 09:13:34 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
repository: nextcloud/server
|
|
|
|
ref: stable27
|
|
|
|
|
|
|
|
- name: Checkout the app
|
2023-12-03 05:58:28 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-10-14 09:13:34 +00:00
|
|
|
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
|
|
|
|
2023-12-03 05:58:28 +00:00
|
|
|
- name: Run PHP-CS-Fixer
|
|
|
|
if: ${{ ! cancelled() }}
|
2023-10-16 00:39:35 +00:00
|
|
|
working-directory: apps/memories
|
|
|
|
run: |
|
2023-12-03 05:58:28 +00:00
|
|
|
vendor/bin/php-cs-fixer fix --dry-run --diff
|
2023-10-14 19:50:28 +00:00
|
|
|
|
2023-12-03 05:58:28 +00:00
|
|
|
- name: Run Psalm
|
|
|
|
if: ${{ ! cancelled() }}
|
2023-10-16 00:39:35 +00:00
|
|
|
working-directory: apps/memories
|
|
|
|
run: |
|
2023-12-03 05:58:28 +00:00
|
|
|
vendor/bin/psalm --no-cache --shepherd --stats --threads=max lib
|
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
|
2023-12-03 05:58:28 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-10-16 00:21:37 +00:00
|
|
|
|
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
|