Skip to content

Commit

Permalink
Merge pull request #1019 from alleyinteractive/release/v2.4.1
Browse files Browse the repository at this point in the history
Release: v2.4.1
  • Loading branch information
attackant authored Jan 3, 2024
2 parents 9458fcd + 6e9246c commit 357fefa
Show file tree
Hide file tree
Showing 91 changed files with 1,419 additions and 1,157 deletions.
52 changes: 37 additions & 15 deletions .deployignore
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
53 changes: 53 additions & 0 deletions .distignore
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
25 changes: 0 additions & 25 deletions .github/workflows/build.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/built-release.yml
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
19 changes: 19 additions & 0 deletions .github/workflows/deploy-to-wordpress.yml
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
38 changes: 16 additions & 22 deletions .github/workflows/node-tests.yml
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/cancel-workflow-action@0.11.0
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: ./
37 changes: 17 additions & 20 deletions .github/workflows/phpcs.yml
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/cancel-workflow-action@0.11.0
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 }}
68 changes: 22 additions & 46 deletions .github/workflows/phpunit.yml
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/cancel-workflow-action@0.11.0
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 }}
24 changes: 0 additions & 24 deletions .github/workflows/release.yml

This file was deleted.

Loading

0 comments on commit 357fefa

Please sign in to comment.