-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change test filenames, update phpunit config. * Update composer dependencies * Update node dependencies * Update workflows for new wordpress and php versions * Update font awesome * Increase version to 6.5.2 * Update Twitter (X) logo * Switch to cdnjs * Fix PHP/WordPress test pairs * Update version number and READMEs
- Loading branch information
1 parent
e0e3a1c
commit 09972c4
Showing
20 changed files
with
390 additions
and
170 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
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,78 @@ | ||
name: PHPUnit Tests (8.x) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- development | ||
pull_request: | ||
branches: | ||
types: [closed] | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
test-php: | ||
name: WordPress ${{ matrix.wordpress-versions }} - PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }} | ||
runs-on: ${{ matrix.operating-system }} | ||
services: | ||
mysql-service: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 3306 | ||
options: >- | ||
--health-cmd="mysqladmin ping" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=3 | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.1', '8.0' ] | ||
wordpress-versions: [ '6.3', '6.2', '6.1', '6.0' ] | ||
operating-system: [ ubuntu-20.04 ] | ||
env: | ||
UTMDC_BITLY_API: ${{secrets.UTMDC_BITLY_API}} | ||
UTMDC_REBRANDLY_API: ${{secrets.UTMDC_REBRANDLY_API}} | ||
UTMDC_PLUGIN_DIR: ${{secrets.UTMDC_PLUGIN_DIR}} | ||
|
||
steps: | ||
- name: Start MySQL | ||
run: sudo /etc/init.d/mysql start | ||
|
||
- name: Setup PHP | ||
# Commit hash for v2.25.4: https://github.com/shivammathur/setup-php/releases/tag/2.25.4 | ||
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring | ||
ini-values: post_max_size=256M, max_execution_time=180 | ||
coverage: xdebug | ||
|
||
- name: Log Debug Information | ||
run: | | ||
echo "$GITHUB_REF" | ||
echo "$GITHUB_EVENT_NAME" | ||
php --version | ||
mysql --version | ||
lsb_release -a | ||
- name: Checkout utm.codes | ||
# Commit hash for v3.5.3: https://github.com/actions/checkout/releases/tag/v3.5.3 | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install PHPUnit | ||
run: | | ||
composer require phpunit/phpunit:^9.5 --update-with-dependencies | ||
- name: Install WordPress | ||
run: | | ||
bash _test/bin/install-wp-tests.sh wordpress_test root root localhost:3306 ${{ matrix.wordpress-versions }} | ||
- name: Run PHPUnit Tests | ||
run: | | ||
cd _test | ||
../vendor/bin/phpunit |
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
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
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
Oops, something went wrong.