Skip to content

Commit 9f8a549

Browse files
authored
ci: migrate to wp-env (#467)
* ci: migrate to wp-env * chore: clean * . * chore: disable plugin check * ci: fix matrices * ci: after start * ci: fix schema linter * ci: fix coverage * ci: improved caching * ci: 1 coverage build * chore: changelog * chore: revert to inline-caching * ci: better key caching * tests: fix activation cest after rebase * ci: WP6.9 + PHP8.4 * ci: use pcov for coverage * ci: fix pdo_install * ci: pcov try again * ci: typo * . * ci: more coverage * ci: html coverage reports * ci: cleanup * ci: individual workflows with `paths` * chore: naming things
1 parent 55d9164 commit 9f8a549

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+26056
-3351
lines changed

.coveralls.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.dockerignore

Lines changed: 0 additions & 34 deletions
This file was deleted.

.editorconfig

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,30 @@
22
# editorconfig.org
33

44
# WordPress Coding Standards
5-
# https://make.wordpress.org/core/handbook/coding-standards/
5+
# https://developer.wordpress.org/coding-standards/wordpress-coding-standards/
66

77
root = true
88

99
[*]
1010
charset = utf-8
1111
end_of_line = lf
12-
indent_size = 4
13-
indent_style = tab
1412
insert_final_newline = true
1513
trim_trailing_whitespace = true
14+
indent_style = tab
1615

17-
[*.txt]
18-
trim_trailing_whitespace = false
16+
[*.json]
17+
indent_size = 2
1918

20-
[*.{md,json,yml}]
19+
[*.md]
2120
trim_trailing_whitespace = false
2221
indent_style = space
2322
indent_size = 2
2423

25-
[*.json]
26-
indent_style = tab
24+
[*.txt]
25+
trim_trailing_whitespace = false
26+
27+
[*.{yml,yaml}]
28+
insert_final_newline = false
29+
quote_type = single
30+
indent_style = space
31+
indent_size = 2

.env.dist

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,21 @@
1-
DB_NAME=wordpress
2-
DB_HOST=app_db
3-
DB_USER=wordpress
4-
DB_PASSWORD=wordpress
5-
WP_TABLE_PREFIX=wp_
6-
WP_URL=http://localhost
7-
WP_DOMAIN=localhost
8-
9-
ADMIN_USERNAME=admin
10-
ADMIN_PASSWORD=password
11-
ADMIN_PATH=/wp-admin
12-
13-
TEST_DB_NAME=wptests
14-
TEST_DB_HOST=127.0.0.1
1+
# Codeception + wp-browser configuration. Change these if you need tests to run
2+
# against a different host (for example, a locally provisioned WordPress).
3+
TEST_DB_NAME=tests-wordpress
4+
TEST_DB_HOST=tests-mysql
155
TEST_DB_USER=root
16-
TEST_DB_PASSWORD=root
6+
TEST_DB_PASSWORD=password
177
TEST_WP_TABLE_PREFIX=wp_
8+
TEST_WP_DOMAIN=tests-wordpress
9+
TEST_WP_URL=http://tests-wordpress
10+
TEST_WP_ROOT_FOLDER=/var/www/html
1811

19-
SKIP_DB_CREATE=false
20-
TEST_WP_ROOT_FOLDER=/tmp/wordpress
2112
13+
TEST_ADMIN_USERNAME=admin
14+
TEST_ADMIN_PASSWORD=password
15+
TEST_ADMIN_PATH=/wp-admin
2216

23-
TESTS_DIR=tests
24-
TESTS_OUTPUT=tests/_output
25-
TESTS_DATA=tests/_data
26-
TESTS_SUPPORT=tests/_support
27-
TESTS_ENVS=tests/_envs
28-
29-
CORE_BRANCH=develop
30-
SKIP_TESTS_CLEANUP=1
31-
SUITES=wpunit
32-
33-
WORDPRESS_DB_HOST=${DB_HOST}
34-
WORDPRESS_DB_USER=${DB_USER}
35-
WORDPRESS_DB_PASSWORD=${DB_PASSWORD}
36-
WORDPRESS_DB_NAME=${DB_NAME}
17+
# Whether to install PCOV in the tests CLI.
18+
# PCOV_ENABLED=1
3719

20+
# Used to install the premium GF Addons in the CLI script.
3821
# GF_KEY=

.gitattributes

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,44 @@
1-
/.github export-ignore
1+
# Automatically normalize line endings.
2+
* text=auto
3+
4+
# Files and directories to exclude from the generated archive (export-ignore).
5+
# These will be omitted from GitHub/Packagist ZIP archives to keep packages small.
26
/bin export-ignore
37
/docker export-ignore
48
/docs export-ignore
59
/phpstan export-ignore
610
/plugin-build export-ignore
7-
/tests export-ignore
8-
/.coveralls.yml export-ignore
9-
/.distignore export-ignore
10-
/.dockerignore export-ignore
11-
/.editorconfig
12-
/.env.dist export-ignore
13-
/.gitattributes export-ignore
14-
/.gitignore export-ignore
15-
/.phpcs.xml.dist export-ignore
16-
/codeception.dist.yml export-ignore
17-
/composer.lock export-ignore
18-
/docker-compose.yml export-ignore
11+
12+
# Tests and test fixtures
13+
/tests/ export-ignore
14+
codecov.yml export-ignore
15+
codeception.dist.yml export-ignore
16+
17+
# PHP unit / static analysis configs.
18+
/phpcs.xml.dist export-ignore
1919
/phpstan.neon.dist export-ignore
20+
/phpunit.xml.dist export-ignore
21+
22+
# Continuous Integration configs.
23+
/.github export-ignore
24+
/.wordpress-org export-ignore
25+
26+
# Node and build artifacts.
27+
package.json export-ignore
28+
package-lock.json export-ignore
29+
/composer.lock export-ignore
30+
/webpack.config.js export-ignore
31+
32+
# Don't include the dotfiles for distribution.
33+
/.* export-ignore
34+
35+
# Mark docs as documentation for GitHub Linguist.
36+
/docs/ linguist-documentation export-ignore
37+
/CHANGELOG.md linguist-documentation export-ignore
38+
/CONTRIBUTING.md linguist-documentation export-ignore
39+
/SECURITY.md linguist-documentation export-ignore
40+
41+
# Keep license and readme files.
42+
/LICENSE.md linguist-documentation
43+
/README.md linguist-documentation
44+
/README.txt linguist-documentation

.github/workflows/code-quality.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/code-standard.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)