-
-
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.
Merge pull request #52 from asdfdotdev/development
Update for v5.8
- Loading branch information
Showing
16 changed files
with
1,986 additions
and
17,020 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
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,76 @@ | ||
name: PHPUnit Tests Nightly (7.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:5.7 | ||
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: [ '7.4', '7.3' ] | ||
wordpress-versions: [ 'nightly' ] | ||
operating-system: [ ubuntu-18.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.9.0: https://github.com/shivammathur/setup-php/releases/tag/2.9.0 | ||
uses: shivammathur/setup-php@50980172517227701a2db688415a86573987b6df | ||
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 | ||
- name: Checkout utm.codes | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install PHPUnit | ||
run: | | ||
composer require phpunit/phpunit:^7 --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: PHPUnit Tests Nightly (Legacy 5.6) | ||
|
||
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:5.6 | ||
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: [ '5.6' ] | ||
wordpress-versions: [ 'nightly' ] | ||
operating-system: [ ubuntu-18.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.9.0: https://github.com/shivammathur/setup-php/releases/tag/2.9.0 | ||
uses: shivammathur/setup-php@50980172517227701a2db688415a86573987b6df | ||
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 | ||
- name: Checkout utm.codes | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install PHPUnit | ||
run: | | ||
composer require phpunit/phpunit:^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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: PHPUnit Tests Nightly (Legacy 7.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:5.6 | ||
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: [ '7.2', '7.1', '7.0' ] | ||
wordpress-versions: [ 'nightly' ] | ||
operating-system: [ ubuntu-18.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.9.0: https://github.com/shivammathur/setup-php/releases/tag/2.9.0 | ||
uses: shivammathur/setup-php@50980172517227701a2db688415a86573987b6df | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring, mysqli | ||
ini-values: post_max_size=256M, max_execution_time=180 | ||
coverage: xdebug | ||
|
||
- name: Log Debug Information | ||
run: | | ||
echo "$GITHUB_REF" | ||
echo "$GITHUB_EVENT_NAME" | ||
echo "WordPress $WORDPRESS_VERSION" | ||
php --version | ||
mysql --version | ||
- name: Checkout utm.codes | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install PHPUnit | ||
run: | | ||
composer require phpunit/phpunit:^6 --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v14.17.4 |
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.