-
Notifications
You must be signed in to change notification settings - Fork 3
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 #4 from omnisend/plugin-release
Plugin release
- Loading branch information
Showing
30 changed files
with
626 additions
and
50 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @omnisend/integrations |
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,21 @@ | ||
name: PHP Standards | ||
run-name: PHP Standards 🔀 ${{ github.ref_name }} | ||
|
||
on: push | ||
|
||
jobs: | ||
Lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer install --prefer-dist --no-progress | ||
- name: Lint PHP files | ||
run: ./lint.sh check |
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,16 @@ | ||
name: Publish plugin | ||
|
||
on: [workflow_dispatch] | ||
jobs: | ||
svn: | ||
name: Release new tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: WordPress Plugin Deploy | ||
uses: omnisend/action-wordpress-plugin-deploy@v1.0.3 | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SLUG: omnisend-for-paid-memberships-pro-add-on | ||
BUILD_DIR: omnisend-for-paid-memberships-pro |
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 |
---|---|---|
@@ -1,50 +1,23 @@ | ||
# These are some examples of commonly ignored file patterns. | ||
# You should customize this list as applicable to your project. | ||
# Learn more about .gitignore: | ||
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore | ||
.vscode/* | ||
.idea/* | ||
.svn | ||
|
||
# Node artifact files | ||
node_modules/ | ||
dist/ | ||
|
||
# Compiled Java class files | ||
*.class | ||
|
||
# Compiled Python bytecode | ||
*.py[cod] | ||
|
||
# Log files | ||
*.log | ||
|
||
# Package files | ||
*.jar | ||
|
||
# Maven | ||
target/ | ||
dist/ | ||
|
||
# JetBrains IDE | ||
.idea/ | ||
|
||
# Unit test reports | ||
TEST*.xml | ||
|
||
# Generated by MacOS | ||
# These are needed when repo is checked out at the location of working WordPress site | ||
.DS_Store | ||
|
||
# Generated by Windows | ||
Thumbs.db | ||
|
||
# Applications | ||
*.app | ||
*.exe | ||
*.war | ||
|
||
# Large media files | ||
*.mp4 | ||
*.tiff | ||
*.avi | ||
*.flv | ||
*.mov | ||
*.wmv | ||
|
||
akismet/ | ||
hello.php | ||
index.php | ||
klaviyo | ||
mailchimp-for-woocommerce | ||
woocommerce | ||
wp-crontrol | ||
code-snippets | ||
|
||
# Composer | ||
composer.phar | ||
/vendor/ | ||
# Local wordpress setup | ||
.wordpress | ||
.env | ||
|
||
*.zip |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1 +1,43 @@ | ||
<h1>wp-omnisend-paid-memberships-pro</h1> | ||
# wp-omnisend-paid-memberships-pro | ||
|
||
Plugin for _Paid Memberships Pro_ WordPress plugin. More information can be found [here](https://wordpress.com/plugins/paid-memberships-pro). | ||
|
||
|
||
## PHP Linting | ||
|
||
WordPress.org team mandates our plugin to be linted | ||
against [WordPress coding standards](https://github.com/WordPress/WordPress-Coding-Standards). | ||
|
||
After each push to any branch `PHP Standards` action will run and all the PHP code will be linted. See action output for results. | ||
|
||
### Linting locally | ||
|
||
Tools needed: | ||
|
||
- php (7.4 version is recommended because at the time of writing WordPress coding standards supports only up to 7.4 version); | ||
- composer (can be installed as described in https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos); | ||
|
||
After installing those tools one can run in local plugin dir (omnisend-for-contact-form-7) helper script: | ||
|
||
```shell | ||
./lint.sh check | ||
./lint.sh fix | ||
``` | ||
|
||
or all commands manually. Following commands | ||
|
||
```shell | ||
composer update | ||
composer install | ||
``` | ||
|
||
install linting tool and standards. And then actual linting `phpcs` script can be initiated with | ||
|
||
```shell | ||
./vendor/squizlabs/php_codesniffer/bin/phpcs --ignore=.js --standard=WordPress omnisend-connect | ||
``` | ||
|
||
A second `phpcbf` script can be run to automatically correct coding standard violations: | ||
|
||
```shell | ||
./vendor/squizlabs/php_codesniffer/bin/phpcbf --ignore=.js --standard=WordPress omnisend-connect |
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,16 @@ | ||
{ | ||
"name": "omnisend/paid-memberships-pro-addon", | ||
"description": "Omnisend for Paid Memberships Pro Add-on", | ||
"license": "proprietary", | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"require-dev": { | ||
"php": ">=7.1.0", | ||
"wp-coding-standards/wpcs": "^3.0", | ||
"squizlabs/php_codesniffer": "^3.7.1", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0" | ||
} | ||
} |
Oops, something went wrong.