Update Makefile, add php_cs.dist file and fix lint workflow

This commit is contained in:
Magnus Walbeck 2021-08-24 16:51:44 +02:00
parent 4095cbb414
commit b1df5d68bd
No known key found for this signature in database
GPG Key ID: CCB78CFF3F950769
3 changed files with 26 additions and 3 deletions

View File

@ -15,4 +15,4 @@ jobs:
- name: Run stylelint
continue-on-error: true
if: ${{ always() }}
run: npm run lint:scss
run: npm run stylelint

18
.php_cs.dist Normal file
View File

@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
require_once './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;

View File

@ -31,19 +31,24 @@ appstore:
rsync -a \
--exclude=".git" \
--exclude=".github" \
--exclude=".tx" \
--exclude=".vscode" \
--exclude="node_modules" \
--exclude="build" \
--exclude="node_modules" \
--exclude="vendor" \
--exclude=".gitignore" \
--exclude=".php_cs.cache" \
--exclude=".php_cs.dist" \
--exclude=".prettierignore" \
--exclude=".prettierrc" \
--exclude=".stylelintignore" \
--exclude=".stylelintrc.json" \
--exclude="composer.json" \
--exclude="composer.lock" \
--exclude="Makefile" \
--exclude="package-lock.json" \
--exclude="package.json" \
--exclude="screenshot.png" \
--exclude="translationtool.phar" \
../$(app_name)/ $(sign_directory)/$(app_name)
@if [ -f $(cert_directory)/$(app_name).key ]; then \
echo "Signing app files…"; \