Skip to content

Commit

Permalink
Merge branch 'develop' into feature/fragment-of-pr-831-endpoint-imple…
Browse files Browse the repository at this point in the history
…mentations
  • Loading branch information
carstingaxion authored Oct 21, 2024
2 parents 34ad38e + 6478e00 commit 8f33582
Show file tree
Hide file tree
Showing 108 changed files with 6,950 additions and 4,189 deletions.
3 changes: 3 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ package-lock.json
phpcs.xml
phpcs.xml.dist
phpcs.ruleset.xml
phpstan.neon
phpstan.neon.dist
phpstan.stubs
phpunit.xml
phpunit.xml.dist
playwright.config.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ function createBlueprint(context, number, zipArtifactUrl, phpVersion) {
networking: true
},
steps: [
{
step: 'enableMultisite',
},
{
step: 'login',
username: 'admin',
Expand Down Expand Up @@ -107,12 +104,15 @@ function createBlueprint(context, number, zipArtifactUrl, phpVersion) {
*/
{
step: 'unzip',
zipPath: '/wordpress/pr/pr.zip',
zipFile: {
resource: 'vfs',
path: '/wordpress/pr/pr.zip',
},
extractToPath: '/wordpress/pr',
},
{
step: 'installPlugin',
pluginZipFile: {
pluginData: {
resource: 'vfs',
path: '/wordpress/pr/gatherpress.zip',
},
Expand All @@ -124,6 +124,16 @@ function createBlueprint(context, number, zipArtifactUrl, phpVersion) {
url: 'https://raw.githubusercontent.com/GatherPress/gatherpress-demo-data/main/GatherPress-demo-data-2024.xml'
}
},
/**
* Run 'enableMultisite' after the plugin activation!
*
* There have been some weird errors with this step, when ran after the login.
* Having it here at the end -kinda- fixes the problem.
* @see https://github.com/GatherPress/gatherpress/issues/950
*/
{
step: 'enableMultisite',
},
],
};

Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/phpstan-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PHPStan Tests
on:
push:
branches:
- main
pull_request:
paths:
- '.github/workflows/phpstan-tests.yml'
- 'includes/**'
# - 'test/unit/php**'
# - '*.php'
- 'phpstan.neon.dist'
- 'composer.*'
jobs:
test-phpstan:
name: PHPStan for WordPress
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
# phpstan requires PHP 7.1+.
php-version: 7.4
extensions: dom, iconv, json, libxml, zip
coverage: none
tools: cs2pr

- name: Composer Install
run: composer install --optimize-autoloader --prefer-dist

- name: Log debug information
run: |
git --version
php --version
composer --version
- name: Running PHPStan Analyze
if: ${{ success() || failure() }}
run: |
vendor/bin/phpstan --version
vendor/bin/phpstan analyze -vv --memory-limit=2G --error-format=checkstyle | cs2pr
2 changes: 1 addition & 1 deletion .github/workflows/playground-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const createPreviewLinks = require('.github/scripts/create-preview-links');
const createPreviewLinks = require('.github/scripts/playground-preview');
createPreviewLinks(github, context);
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ typings
# Composer #
##########
vendor
phpstan.neon

# .wp-env #
##########
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.16.0
v20.18.0
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ extend-ignore-re = [

# Case insensitive, matches inside word.
# [default.extend-words]
"Skelton" = "Skelton"
# bellow = "below"
# toi = "toi"
2 changes: 1 addition & 1 deletion build/272.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/481.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/535.js

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions build/567.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/980.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/blocks/add-to-calendar/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '754b4dfa4e592032751e');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'd363e7f0b415ef3e95a3');
2 changes: 1 addition & 1 deletion build/blocks/add-to-calendar/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/blocks/event-date/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('moment', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => '2a87e9e9bf69563aeae1');
<?php return array('dependencies' => array('moment', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => 'fbdfb147c6c684a7d803');
Loading

0 comments on commit 8f33582

Please sign in to comment.