-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ec8ae9
commit e86036a
Showing
7 changed files
with
31 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
branches: | ||
- main | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
code-quality: | ||
|
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 |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
branches: | ||
- main | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
coding-standards: | ||
|
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 |
---|---|---|
|
@@ -5,58 +5,27 @@ on: | |
branches: | ||
- main | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
tests: | ||
name: "WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }} - (MU: ${{ matrix.multisite }})" | ||
runs-on: ubuntu-latest | ||
name: "WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }}" | ||
strategy: | ||
fail-fast: false # do not fail fast, let all the failing tests fail. | ||
fail-fast: false | ||
matrix: | ||
php: [8.0, 8.1, 8.2, 8.3] | ||
multisite: [0, 1] | ||
wp_version: ['5.9', 'latest'] | ||
env: | ||
WP_CORE_DIR: /tmp/wordpress/ | ||
WP_TESTS_DIR: /tmp/wordpress-tests-lib | ||
WP_VERSION: ${{ matrix.wp_version }} | ||
WP_MULTISITE: ${{ matrix.multisite }} | ||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
steps: | ||
- name: Cancel previous runs of this workflow (pull requests only) | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Set up WordPress and Plugin | ||
run: | | ||
bash <(curl -s "https://raw.githubusercontent.com/wp-cli/sample-plugin/master/bin/install-wp-tests.sh") wordpress_unit_tests root '' 127.0.0.1 ${{ matrix.wp_version }} | ||
rm -rf "${WP_CORE_DIR}wp-content/plugins" | ||
mkdir -p "${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress" | ||
rsync -a --exclude=.git . "${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress" | ||
cd ${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress && composer install | ||
- name: Run all tests | ||
run: | | ||
cd ${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress | ||
composer phpunit | ||
multisite: [true, false] | ||
wp_version: ['latest'] | ||
include: | ||
- php: '8.3' | ||
wp_version: '6.1' | ||
- php: '8.2' | ||
wp_version: '6.1' | ||
- php: '8.0' | ||
wp_version: '6.1' | ||
uses: alleyinteractive/.github/.github/workflows/php-tests.yml@feature/php-tests-core-suite | ||
with: | ||
multisite: ${{ matrix.multisite }} | ||
php: ${{ matrix.php }} | ||
wordpress: ${{ matrix.wp_version }} | ||
test-suite: 'core-test-suite' | ||
package-directory: 'plugins/wp-graphql-buddypress' |
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