forked from beezwax/WP-Publish-to-Apple-News
-
Notifications
You must be signed in to change notification settings - Fork 71
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 #1019 from alleyinteractive/release/v2.4.1
Release: v2.4.1
- Loading branch information
Showing
91 changed files
with
1,419 additions
and
1,157 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 |
---|---|---|
@@ -1,33 +1,55 @@ | ||
.DS_Store | ||
*.zip | ||
tags | ||
composer.lock | ||
vendor | ||
node_modules | ||
npm-debug.log | ||
|
||
# IDEs | ||
.idea | ||
.vscode | ||
|
||
# Directories and files that we do not want to be included with the built | ||
# IDEs | ||
# version and deployed to WordPress.org. | ||
*.sql | ||
*.tar.gz | ||
*.zip | ||
.DS_Store | ||
.babelrc | ||
.circleci/config.yml | ||
.distignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.git | ||
.github | ||
.phpcs.xml | ||
.gitignore | ||
.gitlab-ci.yml | ||
.idea | ||
.phpcs | ||
.phpcs-cache.json | ||
.phpcs.xml | ||
.phpcs.xml.dist | ||
.phpstan | ||
.phpunit.result.cache | ||
.travis.yml | ||
.vscode | ||
.wordpress-org | ||
.wp-env.json | ||
Gruntfile.js | ||
README.md | ||
Thumbs.db | ||
assets/js/pluginsidebar | ||
assets/js/util | ||
behat.yml | ||
bin | ||
bitbucket-pipelines.yml | ||
composer.json | ||
package.json | ||
composer.lock | ||
multisite.xml | ||
multisite.xml.dist | ||
node_modules | ||
npm-debug.log | ||
package-lock.json | ||
package.json | ||
phpcs.xml | ||
phpcs.xml.dist | ||
phpstan.neon.dist | ||
phpunit.xml | ||
phpunit.xml.dist | ||
README.md | ||
tags | ||
tests | ||
vendor | ||
webpack.config.js | ||
wp-cli.local.yml | ||
yarn.lock |
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,53 @@ | ||
# A set of files you probably don't want in your WordPress.org distribution | ||
*.sql | ||
*.tar.gz | ||
*.zip | ||
.DS_Store | ||
.babelrc | ||
.circleci/config.yml | ||
.distignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.git | ||
.github | ||
.gitignore | ||
.gitlab-ci.yml | ||
.idea | ||
.phpcs | ||
.phpcs-cache.json | ||
.phpcs.xml | ||
.phpcs.xml.dist | ||
.phpstan | ||
.phpunit.result.cache | ||
.travis.yml | ||
.vscode | ||
.wordpress-org | ||
.wp-env.json | ||
Gruntfile.js | ||
README.md | ||
Thumbs.db | ||
assets/js/pluginsidebar | ||
assets/js/util | ||
behat.yml | ||
bin | ||
bitbucket-pipelines.yml | ||
composer.json | ||
composer.lock | ||
multisite.xml | ||
multisite.xml.dist | ||
node_modules | ||
npm-debug.log | ||
package-lock.json | ||
package.json | ||
phpcs.xml | ||
phpcs.xml.dist | ||
phpstan.neon.dist | ||
phpunit.xml | ||
phpunit.xml.dist | ||
tags | ||
tests | ||
vendor | ||
webpack.config.js | ||
wp-cli.local.yml | ||
yarn.lock |
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
name: Built Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
- production | ||
|
||
jobs: | ||
built-release: | ||
uses: alleyinteractive/.github/.github/workflows/built-release.yml@main | ||
if: ${{ github.repository != 'alleyinteractive/create-wordpress-plugin' }} | ||
with: | ||
node: 16 | ||
php: '8.2' | ||
composer_install: true | ||
draft: false |
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,19 @@ | ||
name: Deploy to WordPress.org | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
push-built-release: | ||
name: Deploy plugin version to WP.org | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: WordPress Plugin Deploy | ||
uses: 10up/action-wordpress-plugin-deploy@stable | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLUG: publish-to-apple-news | ||
DRY_RUN: false |
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,28 +1,22 @@ | ||
name: Node Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release/* | ||
pull_request: | ||
types: [ opened, synchronize, reopened, ready_for_review ] | ||
branches: | ||
- develop | ||
- release/* | ||
|
||
jobs: | ||
npm-ci: | ||
name: (npm) Install, build, and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install node dependencies (npm ci) | ||
run: npm ci | ||
- name: Run npm lint | ||
run: npm run lint | ||
- name: Run npm test | ||
run: npm run test | ||
- name: Run npm build | ||
run: npm run build | ||
node-tests: | ||
if: github.event.pull_request.draft == false | ||
uses: alleyinteractive/.github/.github/workflows/node-tests.yml@main | ||
with: | ||
ci: true | ||
node: 16 | ||
run-audit: false | ||
working-directory: ./ |
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,25 +1,22 @@ | ||
name: PHP Coding Standards | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release/* | ||
pull_request: | ||
workflow_dispatch: | ||
types: [ opened, synchronize, reopened, ready_for_review ] | ||
branches: | ||
- develop | ||
- release/* | ||
|
||
jobs: | ||
phpcs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
coverage: none | ||
- name: Validate Composer package | ||
run: composer validate --strict | ||
- name: Install dependencies | ||
uses: ramsey/composer-install@v2 | ||
- name: Run PHPCS | ||
run: composer phpcs | ||
strategy: | ||
matrix: | ||
php: [ 8.2 ] | ||
if: github.event.pull_request.draft == false | ||
uses: alleyinteractive/.github/.github/workflows/php-coding-standards.yml@main | ||
with: | ||
php: ${{ matrix.php }} |
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,51 +1,27 @@ | ||
name: Unit Tests | ||
name: Testing Suite | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release/* | ||
pull_request: | ||
workflow_dispatch: | ||
types: [ opened, synchronize, reopened, ready_for_review ] | ||
branches: | ||
- develop | ||
- release/* | ||
|
||
jobs: | ||
tests: | ||
name: "PHP: ${{ matrix.php }} (MU: ${{ matrix.multisite }})" | ||
runs-on: ubuntu-latest | ||
php-tests: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
multisite: [0, 1] | ||
php: ['8.0', '7.4', '7.3', '7.2', '7.1'] | ||
env: | ||
WP_CORE_DIR: /tmp/wordpress/ | ||
WP_MULTISITE: ${{ matrix.multisite }} | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd | ||
coverage: none | ||
- name: Install dependencies | ||
uses: ramsey/composer-install@v2 | ||
- name: Set up WordPress | ||
run: | | ||
bash <(curl -s "https://raw.githubusercontent.com/wp-cli/sample-plugin/master/bin/install-wp-tests.sh") wordpress_unit_tests root '' 127.0.0.1 | ||
rm -rf "${WP_CORE_DIR}wp-content/plugins" | ||
mkdir -p "${WP_CORE_DIR}wp-content/plugins/publish-to-apple-news" | ||
rsync -a --exclude=.git . "${WP_CORE_DIR}wp-content/plugins/publish-to-apple-news" | ||
cd ${WP_CORE_DIR}wp-content/plugins/publish-to-apple-news && composer install | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
cd ${WP_CORE_DIR}/wp-content/plugins/publish-to-apple-news | ||
composer run phpunit | ||
multisite: [true, false] | ||
php: ['8.2', '8.1', '8.0'] | ||
wordpress: ["latest"] | ||
if: github.event.pull_request.draft == false | ||
uses: alleyinteractive/.github/.github/workflows/php-tests.yml@main | ||
with: | ||
command: "phpunit" | ||
multisite: ${{ matrix.multisite }} | ||
php: ${{ matrix.php }} | ||
wordpress: ${{ matrix.wordpress }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.