Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 41 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Lint

permissions:
contents: write

on:
pull_request:
branches:
Expand All @@ -10,16 +13,16 @@ on:
- reopened

jobs:
backend-lint:
name: Backend Lint
format-sync:
name: Format Sync
runs-on: ubuntu-latest

strategy:
fail-fast: true

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -28,18 +31,48 @@ jobs:
tools: composer

- name: Install php-cs-fixer
run: composer require --dev friendsofphp/php-cs-fixer
run: composer require --dev friendsofphp/php-cs-fixer nextcloud/coding-standard --no-interaction --no-progress --no-scripts

- name: Apply php-cs-fixer
run: vendor/bin/php-cs-fixer fix

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.28.2
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"

- name: Run php-cs-fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff
- name: Install JS dependencies
run: pnpm install --frozen-lockfile

- name: Apply Biome format
run: pnpm run format:fix

- name: Commit format changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: apply automated formatting"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

frontend-lint:
name: Frontend Lint
runs-on: ubuntu-latest
needs: format-sync

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand All @@ -59,8 +92,5 @@ jobs:
- name: Run Biome lint
run: pnpm run lint

- name: Run Biome format check
run: pnpm run format

- name: Run TypeScript type check
run: pnpm run typecheck
12 changes: 12 additions & 0 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,17 @@
'url' => '/feedback/submit',
'verb' => 'POST',
],
[
'name' => 'Configuration#create',
'url' => 'configure/create',
'verb' => 'GET',
],
],
'ocs' => [
[
'name' => 'Storage#create',
'url' => '/api/v1/storages',
'verb' => 'POST',
],
],
];
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
}
},
"require": {
"ext-curl": "*"
"ext-curl": "*",
"ext-simplexml": "*"
},
"require-dev": {
"nextcloud/coding-standard": "^1.3.2",
"nextcloud/coding-standard": "^1.4",
"ext-fileinfo": "*",
"friendsofphp/php-cs-fixer": "*",
"bamarni/composer-bin-plugin": "^1.8"
"bamarni/composer-bin-plugin": "^1.8",
"vimeo/psalm": "*"
},
"scripts": {
"cs:check": "./vendor/php-cs-fixer/shim/php-cs-fixer.phar fix --dry-run --diff",
Expand Down
Loading