Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add modular plugin scaffold #13

Open
wants to merge 24 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
phpunit:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- uses: getong/[email protected]

- name: Set PHP version
uses: shivammathur/setup-php@v1
with:
php-version: '7.2'
coverage: none

- name: Install dependencies
run: composer install

- name: Setup WP Tests
run: bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1

- name: PHPUnit
run: './vendor/bin/phpunit'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ Session.vim
# Windows
Thumbs.db
Desktop.ini

# ignore plugins
plugins
32 changes: 26 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,34 @@
"email": "[email protected]"
}
],
"require": {
"php": ">=7.0"
},
"repositories": [
{
"type":"composer",
"url":"https://wpackagist.org"
},
{
"type": "vcs",
"url": "https://github.com/alleyinteractive/wordpress-fieldmanager.git"
},
{
"type": "vcs",
"url": "https://github.com/10up/10up-experience.git"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"10up/phpcs-composer": "dev-master"
},
"require": {
"php": ">=7.0",
"wpackagist-plugin/restricted-site-access": "~7.2.0",
"alleyinteractive/wordpress-fieldmanager" : "~1.3.0",
"10up/10up-experience": "*",
"wpackagist-plugin/gutenberg":"~9.0.0"
},
"extra": {
"installer-paths": {
"plugins/{$name}/": ["type:wordpress-plugin"]
}
},
"scripts": {
"lint": "phpcs .",
"lint-fix": "phpcbf ."
Expand Down
Loading