Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ramster cath
/
new_xado
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Рамиз Мирзаев
2024-08-26 10:10:08 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e96bbd5b6d2c5023183d2699c3b3c0b507b27ec9
e96bbd5b
1 parent
422d131b
First commit for deploy
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
66 deletions
.github/.DS_Store
.github/workflows/Lint.yml
.gitignore
package.json
.github/.DS_Store
deleted
100644 → 0
View file @
422d131
No preview for this file type
.github/workflows/Lint.yml
deleted
100644 → 0
View file @
422d131
name
:
Lint
on
:
push
:
branches
:
-
3.0.x.x
pull_request
:
types
:
[
opened
,
synchronize
]
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
jobs
:
tests
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
php
:
[
'
7.3'
,
'
7.4'
,
'
8.0'
,
'
8.1'
,
'
8.2'
,
'
8.3'
]
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Setup PHP
uses
:
shivammathur/setup-php@v2
with
:
php-version
:
${{ matrix.php }}
tools
:
composer:v2, cs2pr
extensions
:
mbstring
-
name
:
Lint
run
:
|
error=0
for file in $(find upload -type f -name "*.php" ! -path 'upload/system/storage/vendor/*'); do
php -l -n $file | grep -v "No syntax errors detected" && error=1
done
if [ $error -eq 1 ]; then
echo "Syntax errors were found."
exit 1
else
echo "No syntax errors were detected."
fi
-
name
:
Cache dependencies
uses
:
actions/cache@v3
with
:
path
:
|
~/.cache/composer/files
./.cache
./.php-cs-fixer.cache
key
:
OC3.0-PHP${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys
:
OC3.0-PHP${{ matrix.php }}-
-
name
:
PHPStan
run
:
|
composer require phpstan/phpstan 1.10.57
./upload/system/storage/vendor/bin/phpstan analyze --no-progress
-
name
:
Code style
if
:
matrix.php == '8.3'
run
:
|
composer require --dev -w friendsofphp/php-cs-fixer v3.41.1
./upload/system/storage/vendor/bin/php-cs-fixer fix --dry-run --diff --ansi || true
./upload/system/storage/vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
.gitignore
View file @
e96bbd5
...
...
@@ -5,8 +5,8 @@ static/
strg/*
strg/cache/
strg/download/
strg/modification/
strg/session/
strg/vendor/
strg/logs/
.github/
tools/
...
...
package.json
View file @
e96bbd5
...
...
@@ -18,6 +18,5 @@
"vite"
:
"^5.2.0"
},
"dependencies"
:
{
"ckeditor5"
:
"^43.0.0"
}
}
...
...
Please
register
or
login
to post a comment