-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from nextcloud/backport/81/stable22
[stable22] Bye travis
- Loading branch information
Showing
17 changed files
with
4,893 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: composer | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
day: saturday | ||
time: "03:00" | ||
timezone: Europe/Paris | ||
open-pull-requests-limit: 10 | ||
labels: | ||
- 3. to review | ||
- dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Dependabot | ||
on: pull_request | ||
|
||
jobs: | ||
auto-merge: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Default github action approve | ||
- uses: hmarr/[email protected] | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Nextcloud bot approve and merge request | ||
- uses: ahmadnassri/action-dependabot-auto-merge@v1 | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
with: | ||
target: patch | ||
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- stable* | ||
|
||
jobs: | ||
php: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['7.3', '7.4', '8.0'] | ||
|
||
name: php${{ matrix.php-versions }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up php ${{ matrix.php-versions }} | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: none | ||
|
||
- name: Lint | ||
run: composer run lint | ||
|
||
php-cs-fixer: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['7.4'] | ||
|
||
name: cs php${{ matrix.php-versions }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up php | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer i | ||
|
||
- name: Run coding standards check | ||
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) | ||
|
||
xml-linters: | ||
runs-on: ubuntu-latest | ||
|
||
name: info.xml lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Download schema | ||
run: wget https://raw.githubusercontent.com/nextcloud/server/master/resources/app-info-shipped.xsd | ||
|
||
- name: Lint info.xml | ||
uses: ChristophWurst/xmllint-action@v1 | ||
with: | ||
xml-file: ./appinfo/info.xml | ||
xml-schema-file: ./app-info-shipped.xsd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Static analysis | ||
|
||
on: [pull_request] | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,5 +51,7 @@ nbproject | |
/.buildpath | ||
|
||
# Tests - auto-generated files | ||
/.php_cs.cache | ||
/tests/coverage* | ||
/tests/clover.xml | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once './vendor/autoload.php'; | ||
|
||
use Nextcloud\CodingStandard\Config; | ||
|
||
$config = new Config(); | ||
$config | ||
->getFinder() | ||
->notPath('build') | ||
->notPath('l10n') | ||
->notPath('src') | ||
->notPath('vendor') | ||
->in(__DIR__); | ||
return $config; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
# Nextcloud announcements | ||
|
||
Nextcloud announcements brings the latest news of Nextcloud into your notifications | ||
|
||
## QA metrics on master branch: | ||
|
||
[](https://travis-ci.org/nextcloud/nextcloud_announcements) | ||
[](https://scrutinizer-ci.com/g/nextcloud/nextcloud_announcements/?branch=master) | ||
[](https://scrutinizer-ci.com/g/nextcloud/nextcloud_announcements/?branch=master) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"autoload-dev": { | ||
"psr-4": { | ||
"OCP\\": "vendor/christophwurst/nextcloud/OCP", | ||
"OCA\\Notifications\\": "lib/" | ||
} | ||
}, | ||
"name": "nextcloud/notifications", | ||
"description": "notifications", | ||
"license": "AGPL", | ||
"require": { | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.5", | ||
"nextcloud/coding-standard": "^0.5.0", | ||
"christophwurst/nextcloud": "dev-master@dev", | ||
"vimeo/psalm": "^4.3.2" | ||
}, | ||
"config": { | ||
"optimize-autoloader": true, | ||
"classmap-authoritative": true, | ||
"platform": { | ||
"php": "7.3" | ||
} | ||
}, | ||
"scripts": { | ||
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l", | ||
"cs:check": "php-cs-fixer fix --dry-run --diff", | ||
"cs:fix": "php-cs-fixer fix", | ||
"psalm": "psalm --threads=1", | ||
"psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml", | ||
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache", | ||
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType" | ||
} | ||
} |
Oops, something went wrong.