Skip to content

Commit

Permalink
Merge pull request #120 from nextcloud/automated/noid/master-update-c…
Browse files Browse the repository at this point in the history
…hristophwurst-nextcloud

[master] Migrate to nextcloud/ocp dependency
  • Loading branch information
nickvergessen authored Oct 25, 2022
2 parents db91138 + a2d7307 commit 76c1c20
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 107 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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

concurrency:
group: lint-psalm-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
static-analysis:
runs-on: ubuntu-latest
strategy:
# do not stop on another job's failure
fail-fast: false
matrix:
ocp-version: [ 'dev-master', 'dev-stable25', 'dev-stable24', 'dev-stable23' ]

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
tools: composer:v1
coverage: none

- name: Install dependencies
run: composer i

- name: Install dependencies
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} --ignore-platform-reqs

- name: Run coding standards check
run: composer run psalm

summary:
runs-on: ubuntu-latest
needs: static-analysis

if: always()

name: static-psalm-analysis-summary

steps:
- name: Summary status
run: if ${{ needs.static-analysis.result != 'success' }}; then exit 1; fi
41 changes: 0 additions & 41 deletions .github/workflows/static-analysis.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@
# 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:
fail-fast: false
matrix:
branches: ["master", "stable24", "stable23", "stable22"]
branches: ["master"]
target: ["stable23"]

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

steps:
- uses: actions/checkout@v3
Expand All @@ -37,8 +38,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.target }}
continue-on-error: true

- name: Reset checkout dirs
Expand All @@ -52,14 +53,14 @@ jobs:
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
commit-message: Update psalm baseline
commit-message: Update nextcloud/ocp dependency
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
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file.

## 1.14.0
## 1.15.0 – 2022-10-25
### Changed
- Nextcloud 25 compatibility
- Require Nextcloud 23

## 1.14.0 – 2022-04-11
### Changed
- Nextcloud 24 compatibility

Expand Down
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<description>This app sends notifications to users when they reached 85, 90 and 95% of their quota (checked once a day).
In addition an email can be sent to the users. The three percentages can be changed in the admin settings.
It is also possible to have a link in the email and the notification for upsell options.</description>
<version>1.14.0</version>
<version>1.15.0</version>
<licence>agpl</licence>
<author>Joas Schilling</author>
<namespace>QuotaWarning</namespace>
Expand All @@ -23,7 +23,7 @@ It is also possible to have a link in the email and the notification for upsell
<screenshot>https://raw.githubusercontent.com/nextcloud/quota_warning/master/docs/email.png</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/quota_warning/master/docs/admin-settings.png</screenshot>
<dependencies>
<nextcloud min-version="22" max-version="25" />
<nextcloud min-version="23" max-version="25" />
</dependencies>
<repair-steps>
<install>
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/christophwurst/nextcloud/OCP",
"OCA\\Notifications\\": "lib/"
"OCP\\": "vendor/nextcloud/ocp/OCP",
"OCA\\QuotaWarning\\": "lib/"
}
},
"name": "nextcloud/notifications",
Expand All @@ -13,7 +13,8 @@
"classmap-authoritative": true,
"platform": {
"php": "7.4"
}
},
"sort-packages": true
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -25,9 +26,9 @@
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"nextcloud/coding-standard": "^1.0.0",
"christophwurst/nextcloud": "dev-master",
"nextcloud/ocp": "dev-stable23",
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^4.22.0"
}
}
91 changes: 44 additions & 47 deletions composer.lock

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

0 comments on commit 76c1c20

Please sign in to comment.