Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-10-02 11:23:55 +0300
committerGitHub <noreply@github.com>2022-10-02 11:23:55 +0300
commit14d6b85bdda19d9a4b9d59f3eff6bb41c869cabd (patch)
tree37cb7a30cec940a20cac33723492da93f9f65e02
parentf60e8b71899ba13d5d357ccf4a5cdeb2ceabf6f7 (diff)
parent95a33ddf8fe7219841c72988bc6a37aa5fd89cfa (diff)
Merge pull request #2477 from nextcloud/migrate-master-christophwurst-package
Migrate to nextcloud/OCP package in master
-rw-r--r--.github/workflows/psalm.yml35
-rw-r--r--.github/workflows/static-analysis.yml31
-rw-r--r--.github/workflows/update-nextcloud-ocp.yml (renamed from .github/workflows/update-christophwurst-nextcloud.yml)18
-rw-r--r--composer.json11
-rw-r--r--composer.lock91
5 files changed, 97 insertions, 89 deletions
diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml
new file mode 100644
index 00000000..27091d53
--- /dev/null
+++ b/.github/workflows/psalm.yml
@@ -0,0 +1,35 @@
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+
+name: Static analysis
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - main
+ - stable*
+
+jobs:
+ static-analysis:
+ runs-on: ubuntu-latest
+
+ name: Nextcloud
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Set up php
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: 7.4
+ coverage: none
+
+ - name: Install dependencies
+ run: composer i
+
+ - name: Run coding standards check
+ run: composer run psalm
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml
deleted file mode 100644
index 0c073ef9..00000000
--- a/.github/workflows/static-analysis.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: Static analysis
-
-on:
- pull_request:
- push:
- branches:
- - master
- - stable*
-
-jobs:
- static-psalm-analysis:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- ocp-version: [ 'dev-master' ]
- name: Nextcloud ${{ matrix.ocp-version }}
- steps:
- - name: Checkout
- uses: actions/checkout@master
- - name: Set up php
- uses: shivammathur/setup-php@master
- with:
- php-version: 7.4
- tools: composer:v1
- coverage: none
- - name: Install dependencies
- run: composer i
- - name: Install dependencies
- run: composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }}
- - name: Run coding standards check
- run: composer run psalm
diff --git a/.github/workflows/update-christophwurst-nextcloud.yml b/.github/workflows/update-nextcloud-ocp.yml
index 50c81c6f..cabfc6fe 100644
--- a/.github/workflows/update-christophwurst-nextcloud.yml
+++ b/.github/workflows/update-nextcloud-ocp.yml
@@ -3,15 +3,15 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
-name: Update christophwurst/nextcloud
+name: Update nextcloud/ocp
on:
workflow_dispatch:
schedule:
- - cron: "5 4 * * 0"
+ - cron: "5 2 * * 0"
jobs:
- update-christophwurst-nextcloud:
+ update-nextcloud-ocp:
runs-on: ubuntu-latest
strategy:
@@ -19,7 +19,7 @@ jobs:
matrix:
branches: ["master", "stable25", "stable24", "stable23"]
- name: update-christophwurst-nextcloud-${{ matrix.branches }}
+ name: update-nextcloud-ocp-${{ matrix.branches }}
steps:
- uses: actions/checkout@v3
@@ -37,8 +37,8 @@ jobs:
- name: Composer install
run: composer install
- - name: Composer update christophwurst/nextcloud
- run: composer require --dev christophwurst/nextcloud:dev-${{ matrix.branches }}
+ - name: Composer update nextcloud/ocp
+ run: composer require --dev nextcloud/ocp:dev-${{ matrix.branches }}
continue-on-error: true
- name: Reset checkout dirs
@@ -56,10 +56,10 @@ jobs:
committer: GitHub <noreply@github.com>
author: nextcloud-command <nextcloud-command@users.noreply.github.com>
signoff: true
- branch: automated/noid/${{ matrix.branches }}-update-christophwurst-nextcloud
- title: "[${{ matrix.branches }}] Update christophwurst/nextcloud dependency"
+ branch: automated/noid/${{ matrix.branches }}-update-nextcloud-ocp
+ title: "[${{ matrix.branches }}] Update nextcloud/ocp dependency"
body: |
- Auto-generated update of [christophwurst/nextcloud](https://github.com/ChristophWurst/nextcloud_composer/) dependency
+ Auto-generated update of [nextcloud/ocp](https://github.com/nextcloud-deps/ocp/) dependency
labels: |
dependencies
3. to review
diff --git a/composer.json b/composer.json
index 318993a9..da0e83d8 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
"name": "nextcloud/richdocuments",
"type": "project",
"minimum-stability": "dev",
- "prefer-stable" : true,
+ "prefer-stable": true,
"config": {
"platform": {
"php": "7.4"
@@ -10,11 +10,11 @@
},
"require-dev": {
"roave/security-advisories": "dev-master",
- "christophwurst/nextcloud": "dev-master",
"jakub-onderka/php-parallel-lint": "^1.0.0",
"psalm/phar": "^4.7",
"friendsofphp/php-cs-fixer": "^3.8",
- "nextcloud/coding-standard": "^1.0"
+ "nextcloud/coding-standard": "^1.0",
+ "nextcloud/ocp": "dev-master"
},
"license": "AGPLv3",
"authors": [
@@ -29,5 +29,10 @@
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix"
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "OCP\\": "vendor/nextcloud/ocp/OCP"
+ }
}
}
diff --git a/composer.lock b/composer.lock
index daf45b88..9fbd16de 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,54 +4,10 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "1fc86755532bbd97e63539214d3f2cf2",
+ "content-hash": "e3f605bab52f11511885ffaf69a39642",
"packages": [],
"packages-dev": [
{
- "name": "christophwurst/nextcloud",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/ChristophWurst/nextcloud_composer.git",
- "reference": "5c5d849a8796ab3b3ab803368d6e479d0b0d443d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ChristophWurst/nextcloud_composer/zipball/5c5d849a8796ab3b3ab803368d6e479d0b0d443d",
- "reference": "5c5d849a8796ab3b3ab803368d6e479d0b0d443d",
- "shasum": ""
- },
- "require": {
- "php": "^7.4 || ~8.0 || ~8.1",
- "psr/container": "^1.0",
- "psr/event-dispatcher": "^1.0",
- "psr/log": "^1.1"
- },
- "default-branch": true,
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "25.0.0-dev"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "AGPL-3.0-or-later"
- ],
- "authors": [
- {
- "name": "Christoph Wurst",
- "email": "christoph@winzerhof-wurst.at"
- }
- ],
- "description": "Composer package containing Nextcloud's public API (classes, interfaces)",
- "support": {
- "issues": "https://github.com/ChristophWurst/nextcloud_composer/issues",
- "source": "https://github.com/ChristophWurst/nextcloud_composer/tree/master"
- },
- "time": "2022-05-06T01:53:16+00:00"
- },
- {
"name": "composer/pcre",
"version": "3.0.0",
"source": {
@@ -602,6 +558,49 @@
"time": "2021-11-10T08:44:10+00:00"
},
{
+ "name": "nextcloud/ocp",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nextcloud-deps/ocp.git",
+ "reference": "04ad54073af7a8c57ff147d33c3252832bba10f9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/04ad54073af7a8c57ff147d33c3252832bba10f9",
+ "reference": "04ad54073af7a8c57ff147d33c3252832bba10f9",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.4 || ~8.0 || ~8.1",
+ "psr/container": "^1.1.1",
+ "psr/event-dispatcher": "^1.0",
+ "psr/log": "^1.1"
+ },
+ "default-branch": true,
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "26.0.0-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "AGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Christoph Wurst",
+ "email": "christoph@winzerhof-wurst.at"
+ }
+ ],
+ "description": "Composer package containing Nextcloud's public API (classes, interfaces)",
+ "support": {
+ "source": "https://github.com/nextcloud-deps/ocp/tree/master"
+ },
+ "time": "2022-10-02T00:58:49+00:00"
+ },
+ {
"name": "php-cs-fixer/diff",
"version": "v2.0.2",
"source": {
@@ -2768,7 +2767,7 @@
"minimum-stability": "dev",
"stability-flags": {
"roave/security-advisories": 20,
- "christophwurst/nextcloud": 20
+ "nextcloud/ocp": 20
},
"prefer-stable": true,
"prefer-lowest": false,