2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00
Commit graph

13 commits

Author SHA1 Message Date
Angus McLeod
0e4e7d944b
Two Four Nine (#480)
* WP < 5.5 backwards compatibility

* WP 5.1.2 to 5.3 compatibility

* Fix linting

* Fix test workflow matrix

* Matrix requires array

* Update multisite phpunit config

* More linting fixes

* Update metadata

* Update release note
2023-03-09 16:37:10 -07:00
Angus McLeod
0473d432b3
Target workflow to release labels (#478) 2023-02-14 13:36:46 -08:00
Jarek Radosz
11606396ac
DEV: Update CI workflows (#475)
1. Updated actions
2. Updated node to the latest LTS
3. Ran a yaml linter
4. Enabled npm caching
5. Disabled metadata checks for PRs that only update `.github` directory, or package.json/package-lock.json files
2023-01-09 16:59:38 +01:00
Angus McLeod
7e86834666
Fixes for comment formatter log issue (#449)
* Comment out comment_formatter log

* Format comment

* Update version

* Comment out relevant test

* Try removing PHPEnv

* Update formatting.yml

* Update formatting.yml

* Apply changes to other actions

* Add release note about github action changes

* Update to fix note

* Return without running formatter if comments are disabled

* Fix test linting

* Update test-discourse-comment.php
2022-05-11 11:29:59 -07:00
Angus McLeod
5dc4ac0871
Update workflows and documentation (#430)
* Reformat workflows, add metadata workflow and add contributing doc

* Update workflow names

* Update metadata.yml

* Update metadata.yml

* Fix script syntax

* Add package.json for tests

* Move setup node up

* Remove npm caching

* Rearrange metadata run order

* Fix metadata script comparisons

* Increment versions and add release note
2021-12-07 13:53:22 -08:00
Angus McLeod
866038dc6c
Complete tests and logs (#426)
* WIP: various tests and logs

* Complete tests and logs for primary classes

* Minor fix

* WIP: various tests and logs

* Complete tests and logs for primary classes

* Minor fix

* Remove incorrectly merged code

* PHPCS fixes

* Add phpunit polifils as a dev dependency

* Bump phpunit polyfills version

* Minor test and dependency fixes

* Update ci.yml

* Complete multisite tests and integrate in CI

* Change coverage focus to entire lib folder

* Update TESTS.md

* Add logging to connection status

* Update verbose log settings

* Make verbose logging network settings in multisite

* Add utilities tests

* PHPCS fix

* Update version and add release notes

* Update settings-validator.php
2021-12-01 12:36:18 -08:00
Angus McLeod
420d577aa0
IMPROVE: add translation pipeline for configurable text (#422)
* IMPROVE: add translation pipeline for configurable text

* Update version and release notes

* Update ci.yml
2021-11-05 12:17:25 -07:00
Angus McLeod
7da0520cac
Fix deploy.yml "Deploy" step uses key (#417) 2021-07-30 11:20:05 -07:00
Angus McLeod
2476753dda
Create deploy.yml based on the 10up example (#416)
See https://github.com/10up/action-wordpress-plugin-deploy#deploy-on-pushing-a-new-tag. @scossar We'll discuss further on meta.discourse.org
2021-07-28 12:47:49 -07:00
Angus McLeod
331c94ccea
Compatability and CI Updates (#409)
* Do not use libxml_disable_entity_loader on PHP 8

* Add PHPUnit tests to CI, excluding PHP 8

* Ensure we're installing composer as needed in GH actions

* Only run tests on 7.1

* Remove PHP 8 from CI

* Remove tests from CI for now

* Re-enable tests on 7.1 only

* Start the mysql service

* CI Tweaks

* CI: revert to root pwd

* Create user with native pwd for use in install-wp-tests

* Use PHP 7.4 for tests

* re-add lock file

* Update version and changelog

* Ensure test helpers are required

* Transients must be removed to ensure we get an error response in test
2021-06-02 14:04:36 -07:00
Simon Cossar
43bd053450
Bump version to 2.2.4 (#404)
* Add base log classes

* Return maxFiles to normal level

* Use protected class variables for folder names in folder-manager

* Add unit tests for logger classes && various logger improvements

* Add log viewer

* Fix initialization sequence in LogViewer

* Add wp-discourse settings to plugin meta

* Remove metafile comments

* Add partial coverage and annotate LogViewer

* Add code coverage reporting and a tests readme

* Tests readme xdebug section formatting

* Add logging and tests to discourse-publish

This abstracts remote post components to make it possible to add consistent error and log handling. Also adds basic tests coverage for discourse-publish.

* Add successful publication test

* Add working tests for publish_after_create and publish_after_update

* Always remove test files and database upon install

* Cleanup copy and assertions for existing tests

* Final cleanup && verbose setting

* Improve structure of publish test

* Final tests, linting, security and cleanup

* PHP 7.0 Compatibility

* PHP 5.6 Compatibility

* JSHint fixes

* Update file-handler.php

* Update log viewer title

* Use older monolog and update file_handler function signatures

* Add nonce to other view_log action

* Namespace production composer packages and define build process

* Update COMPOSER.md

* Update FORMATTING.md

* Log viewer style, naming and log-refresh improvements

* Filter out all return type declarations during scoping

* JsHint: Don't use default params

* Update COMPOSER.md

* Copy fix

* Update scoper patchers notes

* Address syntax issues

- Remove >php7 syntax from non-required files
- Add phpcs pattern exclusions to phpcs.xml
- update formatting docs

* discourse-publish: address all phpcs notices and add more tests

Note: also added dealerdirect/phpcodesniffer-composer-installer to handle local requiring of codesniffer

* Handle all phpcs warnings in lib/logs

* Add todo: review phpcs exclusions to discourse-publish

* Monolog cleanup

- Remove unused monolog handlers, processors and formatters
- Add vendor_namespaced to excluded phpcs patterns

* Update CI versions to those used in composer

* Switch to using composer directly in CI actions

* Composer is packaged in shivammathur/setup-php

* Setup PHPCS via shivammathur/setup-php

* Incorrect tools key

* Use vendor/bin version of phpcs

* Install composer dependencies via ramsey/composer-install

* Update composer.lock to composer 2 and --ignore-platform-reqs

* Install lowest version of dependencies

* Move dependency-versions key

* Move composer-options key

* Exclude vendor directory from syntax checker

* Add vendor to jshintignore

* Update phpcs.xml to properly exclude js css and config files

* Address phpcs issues in log-viewer

* Fix remaining whitespace issues created in this PR

* Remove out of date sniffs and exclude specific code where necessary

* Final cleanup

* Properly escape html in log viewer

* Remove unnecessary verbiage from documentation

* Bump plugin's version to 2.2.4

Co-authored-by: Angus McLeod <angus@mcleod.org.au>
2021-05-11 15:31:24 -07:00
Simon Cossar
c8202350f5
Bump plugin version to 2.2.2 (#394) 2021-03-19 18:52:03 -07:00
Osama Sayegh
6ca6f55b50
DEV: Switch from Travis to Actions (#379) 2020-12-15 10:59:09 -08:00