Skip to content

Commit

Permalink
Merge pull request #257 from nextcloud/migrate-stable25-christophwurs…
Browse files Browse the repository at this point in the history
…t-package

Migrate to nextcloud/OCP package in stable25
  • Loading branch information
come-nc authored Oct 2, 2022
2 parents a004b03 + 59980df commit 959bfa3
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 82 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
# 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-psalm-analysis:
static-analysis:
runs-on: ubuntu-latest

strategy:
matrix:
ocp-version: [ 'dev-stable25' ]

name: Nextcloud ${{ matrix.ocp-version }}
name: Nextcloud
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v3

- name: Set up php
uses: shivammathur/setup-php@v2
Expand All @@ -29,8 +31,5 @@ jobs:
- 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
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
# 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 * * 1-5"
- cron: "5 2 * * 0"

jobs:
update-christophwurst-nextcloud:
update-nextcloud-ocp:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
branches: ["master", "stable25", "stable24", "stable23"]

name: update-christophwurst-nextcloud-${{ matrix.branches }}
name: update-nextcloud-ocp-${{ matrix.branches }}

steps:
- uses: actions/checkout@v3
Expand All @@ -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
Expand All @@ -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
34 changes: 17 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/christophwurst/nextcloud/OCP",
"OCP\\": "vendor/nextcloud/ocp/OCP",
"OCA\\UserMigration\\": "lib/"
}
},
"scripts": {
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './node_modules/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './node_modules/*' -print0 | xargs -0 -n1 php -l",
"psalm": "psalm",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"psalm:update-baseline": "psalm --threads=1 --update-baseline"
},
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "7.4"
}
},
"require-dev": {
"nextcloud/coding-standard": "^1.0.0",
"phpunit/phpunit": "^9.5",
"christophwurst/nextcloud": "dev-stable25",
},
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "7.4"
}
},
"require-dev": {
"nextcloud/coding-standard": "^1.0.0",
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^4.19",
"doctrine/dbal": "^3",
"deepdiver/zipstreamer": "^2.0"
}
"deepdiver/zipstreamer": "^2.0",
"nextcloud/ocp": "dev-stable25"
}
}
90 changes: 44 additions & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 959bfa3

Please sign in to comment.