-
-
Notifications
You must be signed in to change notification settings - Fork 88
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 #1325 from nextcloud/fix/add-workflows
Add codestyle workflows and fixer
- Loading branch information
Showing
93 changed files
with
9,641 additions
and
9,547 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,7 @@ | ||
# .git-blame-ignore-revs | ||
|
||
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
# Run of cs:fix | ||
b059d12c92bc2dbfa9346ecad1c47cee1a5cb0c7 |
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,33 @@ | ||
# 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: Lint info.xml | ||
|
||
on: pull_request | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: lint-info-xml-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
xml-linters: | ||
runs-on: ubuntu-latest-low | ||
|
||
name: info.xml lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Download schema | ||
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd | ||
|
||
- name: Lint info.xml | ||
uses: ChristophWurst/xmllint-action@36f2a302f84f8c83fceea0b9c59e1eb4a616d3c1 # v1.2 | ||
with: | ||
xml-file: ./appinfo/info.xml | ||
xml-schema-file: ./info.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,45 @@ | ||
# 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: Lint php-cs | ||
|
||
on: pull_request | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: lint-php-cs-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
name: php-cs | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Get php version | ||
id: versions | ||
uses: icewind1991/nextcloud-version-matrix@7d433286e92318f51ed0537b6c77374759e12f46 # v1.3.0 | ||
|
||
- name: Set up php${{ steps.versions.outputs.php-available }} | ||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2 | ||
with: | ||
php-version: ${{ steps.versions.outputs.php-available }} | ||
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite | ||
coverage: none | ||
ini-file: development | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: composer i | ||
|
||
- name: Lint | ||
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) |
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,67 @@ | ||
# 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: Lint php | ||
|
||
on: pull_request | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: lint-php-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest-low | ||
outputs: | ||
php-versions: ${{ steps.versions.outputs.php-versions }} | ||
steps: | ||
- name: Checkout app | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Get version matrix | ||
id: versions | ||
uses: icewind1991/nextcloud-version-matrix@111919cfc7b388b7c02cac3c5d53627137adb89f # v1.0.0 | ||
|
||
php-lint: | ||
runs-on: ubuntu-latest | ||
needs: matrix | ||
strategy: | ||
matrix: | ||
php-versions: ${{fromJson(needs.matrix.outputs.php-versions)}} | ||
|
||
name: php-lint | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Set up php ${{ matrix.php-versions }} | ||
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite | ||
coverage: none | ||
ini-file: development | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Lint | ||
run: composer run lint | ||
|
||
summary: | ||
permissions: | ||
contents: none | ||
runs-on: ubuntu-latest-low | ||
needs: php-lint | ||
|
||
if: always() | ||
|
||
name: php-lint-summary | ||
|
||
steps: | ||
- name: Summary status | ||
run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi |
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
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/vendor-bin/csfixer/vendor/autoload.php'; | ||
|
||
use Nextcloud\CodingStandard\Config; | ||
|
||
$config = new Config(); | ||
$config | ||
->getFinder() | ||
->ignoreVCSIgnored(true) | ||
->notPath('build') | ||
->notPath('l10n') | ||
->notPath('src') | ||
->notPath('vendor') | ||
->in(__DIR__); | ||
return $config; |
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 |
---|---|---|
|
@@ -20,6 +20,9 @@ | |
<author mail="[email protected]">Arne Hamann</author> | ||
<author homepage="https://jancborchardt.net">Jan C. Borchardt</author> | ||
<namespace>Maps</namespace> | ||
<types> | ||
<filesystem/> | ||
</types> | ||
<category>integration</category> | ||
<category>multimedia</category> | ||
<category>organization</category> | ||
|
@@ -32,18 +35,18 @@ | |
<screenshot>https://raw.githubusercontent.com/nextcloud/maps/master/screenshots/screenshot2.png</screenshot> | ||
<screenshot>https://raw.githubusercontent.com/nextcloud/maps/master/screenshots/screenshot3.png</screenshot> | ||
<dependencies> | ||
<php min-version="8.1" max-version="8.3"/> | ||
<lib>exif</lib> | ||
<nextcloud min-version="28" max-version="29"/> | ||
<php min-version="8.1" max-version="8.3"/> | ||
</dependencies> | ||
<repair-steps> | ||
<post-migration> | ||
<step>OCA\Maps\Migration\RegisterMimeType</step> | ||
</post-migration> | ||
<install> | ||
<step>OCA\Maps\Migration\InstallScan</step> | ||
<step>OCA\Maps\Migration\RegisterMimeType</step> | ||
</install> | ||
<post-migrate> | ||
<step>OCA\Maps\Migration\RegisterMimeType</step> | ||
</post-migrate> | ||
<uninstall> | ||
<step>OCA\Maps\Migration\UnregisterMimeType</step> | ||
</uninstall> | ||
|
@@ -63,7 +66,4 @@ | |
<icon>app.svg</icon> | ||
</navigation> | ||
</navigations> | ||
<types> | ||
<filesystem/> | ||
</types> | ||
</info> |
Oops, something went wrong.