-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internal: Create a Notifications package for plugins [ED-16360] (#1)
- Loading branch information
Showing
7 changed files
with
872 additions
and
0 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,48 @@ | ||
name: PHP Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
PHP-Code-Standards: | ||
name: Lint PHP files | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip PHPCS]') || !contains(github.event.head_commit.message, '[skip CI]')" | ||
steps: | ||
- name: Check out source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 # 2.27.1 | ||
with: | ||
php-version: '7.4' | ||
coverage: none | ||
tools: composer, cs2pr, phpcs | ||
env: | ||
fail-fast: 'true' | ||
|
||
- name: Log debug information | ||
run: | | ||
export PATH=$HOME/.composer/vendor/bin:$PATH | ||
php --version | ||
phpcs -i | ||
composer --version | ||
- name: Install dependencies | ||
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # 2.2.0 | ||
|
||
- name: Run style check | ||
run: | | ||
export PATH=$HOME/.composer/vendor/bin:$PATH | ||
composer run lint |
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,3 @@ | ||
vendor/ | ||
node_modules/ | ||
.idea/ |
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,23 @@ | ||
{ | ||
"name": "elementor/wp-notifications-package", | ||
"version": "1.0.0", | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "^3.10.2", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0", | ||
"wp-coding-standards/wpcs": "^3.1.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"scripts": { | ||
"lint": "vendor/bin/phpcs --standard=./phpcs.xml .", | ||
"lint:fix": "vendor/bin/phpcbf ." | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Elementor\\WPNotificationsPackage\\": "src/" | ||
} | ||
} | ||
} |
Oops, something went wrong.