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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-09-27 09:46:19 +0300
committerGitHub <noreply@github.com>2022-09-27 09:46:19 +0300
commit6d12a6dfef72a63a149fc0c5eb9c7ad192573887 (patch)
tree5910af0dd1a669b04d7548d714d253ee2c5df477
parentb76239a1354aa76f644280990b5853af73e4d437 (diff)
parent6bfedf5f26f51f3dcd2b937c777cfac30c852d3f (diff)
Merge pull request #3062 from nextcloud/migrate-stable23-christophwurst-packagev23.0.10rc1
Migrate to nextcloud/OCP package in stable23
-rw-r--r--.github/workflows/psalm.yml30
-rw-r--r--.github/workflows/static-analysis.yml26
-rw-r--r--.github/workflows/update-nextcloud-ocp.yml65
-rw-r--r--composer.json51
-rw-r--r--composer.lock87
-rw-r--r--psalm.xml2
-rw-r--r--tests/psalm-baseline.xml2
7 files changed, 170 insertions, 93 deletions
diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml
new file mode 100644
index 000000000..ff271c1e7
--- /dev/null
+++ b/.github/workflows/psalm.yml
@@ -0,0 +1,30 @@
+name: Static analysis
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - main
+ - stable*
+
+jobs:
+ static-analysis:
+ runs-on: ubuntu-latest
+
+ name: Nextcloud ${{ matrix.ocp-version }}
+ 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 88cd669af..000000000
--- a/.github/workflows/static-analysis.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Static analysis
-
-on: [pull_request]
-
-jobs:
- static-psalm-analysis:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- ocp-version: [ 'dev-stable23' ]
- 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-nextcloud-ocp.yml b/.github/workflows/update-nextcloud-ocp.yml
new file mode 100644
index 000000000..a396b6f87
--- /dev/null
+++ b/.github/workflows/update-nextcloud-ocp.yml
@@ -0,0 +1,65 @@
+# 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: Update nextcloud/ocp
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: "5 4 * * 0"
+
+jobs:
+ update-nextcloud-ocp:
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ branches: ["master", "stable25", "stable24", "stable23"]
+
+ name: update-nextcloud-ocp-${{ matrix.branches }}
+
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ ref: ${{ matrix.branches }}
+ submodules: true
+
+ - name: Set up php7.4
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: 7.4
+ extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
+ coverage: none
+
+ - name: Composer install
+ run: composer install
+
+ - name: Composer update nextcloud/ocp
+ run: composer require --dev nextcloud/ocp:dev-${{ matrix.branches }}
+ continue-on-error: true
+
+ - name: Reset checkout dirs
+ run: |
+ git clean -f 3rdparty
+ git clean -f vendor
+ git checkout 3rdparty vendor
+ continue-on-error: true
+
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
+ with:
+ token: ${{ secrets.COMMAND_BOT_PAT }}
+ commit-message: Update psalm baseline
+ committer: GitHub <noreply@github.com>
+ author: nextcloud-command <nextcloud-command@users.noreply.github.com>
+ signoff: true
+ branch: automated/noid/${{ matrix.branches }}-update-nextcloud-ocp
+ title: "[${{ matrix.branches }}] Update nextcloud/ocp dependency"
+ body: |
+ 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 b35c7fc1f..ce449bbc9 100644
--- a/composer.json
+++ b/composer.json
@@ -1,25 +1,30 @@
{
- "name": "nextcloud/text",
- "type": "project",
- "require-dev": {
- "roave/security-advisories": "dev-master",
- "christophwurst/nextcloud": "dev-stable23",
- "jakub-onderka/php-parallel-lint": "^1.0.0",
- "nextcloud/coding-standard": "^0.5.0",
- "psalm/phar": "^4.3",
- "ext-mbstring": "*"
- },
- "license": "AGPLv3",
- "authors": [
- {
- "name": "Julius Härtl",
- "email": "jus@bitgrid.net"
- }
- ],
- "scripts": {
- "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
- "cs:check": "php-cs-fixer fix --dry-run --diff",
- "cs:fix": "php-cs-fixer fix",
- "psalm": "psalm.phar"
- }
+ "name": "nextcloud/text",
+ "type": "project",
+ "require-dev": {
+ "roave/security-advisories": "dev-master",
+ "jakub-onderka/php-parallel-lint": "^1.0.0",
+ "nextcloud/coding-standard": "^0.5.0",
+ "psalm/phar": "^4.3",
+ "ext-mbstring": "*",
+ "nextcloud/ocp": "dev-stable23"
+ },
+ "license": "AGPLv3",
+ "authors": [
+ {
+ "name": "Julius Härtl",
+ "email": "jus@bitgrid.net"
+ }
+ ],
+ "scripts": {
+ "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
+ "cs:check": "php-cs-fixer fix --dry-run --diff",
+ "cs:fix": "php-cs-fixer fix",
+ "psalm": "psalm.phar"
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "OCP\\": "vendor/nextcloud/ocp/OCP"
+ }
+ }
}
diff --git a/composer.lock b/composer.lock
index 400832d9b..70ebffdb7 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,49 +4,10 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "08c970b3d11a483fa6df1e4f3271708b",
+ "content-hash": "1c6d7fc475152e7d7367aff723453b0d",
"packages": [],
"packages-dev": [
{
- "name": "christophwurst/nextcloud",
- "version": "dev-stable23",
- "source": {
- "type": "git",
- "url": "https://github.com/ChristophWurst/nextcloud_composer.git",
- "reference": "3725f37085a0de42135df9aad3939f7a137205c2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ChristophWurst/nextcloud_composer/zipball/3725f37085a0de42135df9aad3939f7a137205c2",
- "reference": "3725f37085a0de42135df9aad3939f7a137205c2",
- "shasum": ""
- },
- "require": {
- "php": "^7.3 || ~8.0.0",
- "psr/container": "^1.1.1",
- "psr/event-dispatcher": "^1.0",
- "psr/log": "^1.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "23.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)",
- "time": "2022-06-02T14:13:38+00:00"
- },
- {
"name": "composer/pcre",
"version": "1.0.1",
"source": {
@@ -582,6 +543,48 @@
"time": "2021-01-11T14:15:58+00:00"
},
{
+ "name": "nextcloud/ocp",
+ "version": "dev-stable23",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nextcloud-deps/ocp.git",
+ "reference": "74fa82bb013bb329eb59b18d6eb94a660d724fea"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/74fa82bb013bb329eb59b18d6eb94a660d724fea",
+ "reference": "74fa82bb013bb329eb59b18d6eb94a660d724fea",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.3 || ~8.0.0",
+ "psr/container": "^1.1.1",
+ "psr/event-dispatcher": "^1.0",
+ "psr/log": "^1.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "23.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/stable23"
+ },
+ "time": "2022-08-23T02:31:53+00:00"
+ },
+ {
"name": "php-cs-fixer/diff",
"version": "v1.3.1",
"source": {
@@ -2743,7 +2746,7 @@
"minimum-stability": "stable",
"stability-flags": {
"roave/security-advisories": 20,
- "christophwurst/nextcloud": 20
+ "nextcloud/ocp": 20
},
"prefer-stable": false,
"prefer-lowest": false,
@@ -2751,5 +2754,5 @@
"platform-dev": {
"ext-mbstring": "*"
},
- "plugin-api-version": "1.1.0"
+ "plugin-api-version": "2.3.0"
}
diff --git a/psalm.xml b/psalm.xml
index dbfd50a20..b93ed82c3 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -10,7 +10,7 @@
<directory name="lib" />
</projectFiles>
<extraFiles>
- <directory name="vendor/christophwurst/nextcloud" />
+ <directory name="vendor/nextcloud/ocp" />
</extraFiles>
<issueHandlers>
<UndefinedClass>
diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml
index 0c62e2e60..a56ad86bd 100644
--- a/tests/psalm-baseline.xml
+++ b/tests/psalm-baseline.xml
@@ -149,7 +149,7 @@
<code>null</code>
</NullableReturnStatement>
</file>
- <file src="vendor/christophwurst/nextcloud/OCP/BackgroundJob/TimedJob.php">
+ <file src="vendor/nextcloud/ocp/OCP/BackgroundJob/TimedJob.php">
<ImplementedParamTypeMismatch occurrences="1">
<code>$jobList</code>
</ImplementedParamTypeMismatch>