mirror of
https://gh.wpcy.net/https://github.com/discourse/wp-discourse.git
synced 2026-05-23 03:20:46 +08:00
* Don't try to add url to <head> if it's not present * Update js config and formatting for comment block and sidebar * PHP Linting * FIX: Don't auto-publish updates to existing posts. See: https://meta.discourse.org/t/disable-posting-wordpress-articles-to-discourse-when-theyre-updated/204488 * Bump version and release notes. * Fix remote-post.php linting * Update tests.yml to install svn * Re-generate comments js build
44 lines
1 KiB
YAML
Vendored
44 lines
1 KiB
YAML
Vendored
name: WP-Discourse Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Tests on PHP ${{ matrix.php }}
|
|
strategy:
|
|
matrix:
|
|
php: ['8.2']
|
|
wordpress: ['latest']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
|
|
- name: Install Subversion
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y subversion
|
|
|
|
- name: Install Composer
|
|
uses: ramsey/composer-install@v2
|
|
with:
|
|
dependency-versions: 'highest'
|
|
composer-options: '--ignore-platform-reqs'
|
|
|
|
- name: PHPUnit
|
|
run: |
|
|
sudo /etc/init.d/mysql start
|
|
bash bin/install-wp-tests.sh wordpress_test root 'root' localhost ${{ matrix.wordpress }}
|
|
vendor/bin/phpunit
|
|
|
|
- name: PHPUnit Multisite
|
|
run: |
|
|
vendor/bin/phpunit -c tests/phpunit/multisite.xml
|