Skip to content

Commit

Permalink
Merge pull request #50 from ONLYOFFICE/fix/actions-build
Browse files Browse the repository at this point in the history
Fix/actions build
  • Loading branch information
LinneyS authored Sep 26, 2023
2 parents a26a43d + 74fd077 commit 46371ff
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
node-version: 16
- name: Build Artifact
run: |
composer install --no-dev
cd ${{ github.workspace }}/onlyoffice-wordpress-block
npm install
npm run build
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ jobs:
- name: Run phpcs
run: |
composer self-update --1
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
composer create-project wp-coding-standards/wpcs --no-dev
composer global show -P
php phpcs.phar --config-set ignore_warnings_on_exit 1
php phpcs.phar --config-set installed_paths /home/runner/work/onlyoffice-wordpress/onlyoffice-wordpress/wpcs
php phpcs.phar --standard=Wordpress --ignore=3rdparty,onlyoffice-wordpress-block,admin/js,onlyoffice-tinymce/*.js,vendor,wpcs ./
composer install
vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
vendor/bin/phpcs --standard=Wordpress --ignore=3rdparty,onlyoffice-wordpress-block,admin/js,onlyoffice-tinymce/*.js,vendor,wpcs ./
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: sudo apt-get install zip
- name: Build Plugin
run: |
composer install --no-dev
cd ${{ github.workspace }}/onlyoffice-wordpress-block
npm install
npm run build
Expand Down
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"require": {
"firebase/php-jwt": "^6.3"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.7.2",
"wp-coding-standards/wpcs": "^3.0.1"
}
}

0 comments on commit 46371ff

Please sign in to comment.