newspack-scripts 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/CODEOWNERS +1 -0
- package/config/eslintrc.js +4 -0
- package/package.json +1 -1
- package/src/executors/default.yml +2 -2
- package/src/jobs/test-php.yml +6 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @Automattic/newspack-product
|
package/config/eslintrc.js
CHANGED
|
@@ -61,5 +61,9 @@ module.exports = {
|
|
|
61
61
|
"@typescript-eslint/no-unused-vars": "error",
|
|
62
62
|
// Disallow logging.
|
|
63
63
|
"no-console": "error",
|
|
64
|
+
// Handle the issue where no-shadow is a false positive when declaring TS enums.
|
|
65
|
+
// See https://github.com/typescript-eslint/typescript-eslint/issues/2483
|
|
66
|
+
"no-shadow": "off",
|
|
67
|
+
"@typescript-eslint/no-shadow": "error",
|
|
64
68
|
},
|
|
65
69
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
description: >
|
|
2
2
|
This is a sample executor using Docker and Node.
|
|
3
3
|
docker:
|
|
4
|
-
- image:
|
|
4
|
+
- image: "cimg/php:<<parameters.tag>>"
|
|
5
5
|
parameters:
|
|
6
6
|
tag:
|
|
7
|
-
default:
|
|
7
|
+
default: 8.0-browsers
|
|
8
8
|
description: >
|
|
9
9
|
Pick a specific circleci/php image variant:
|
|
10
10
|
https://hub.docker.com/r/cimg/php/tags
|
package/src/jobs/test-php.yml
CHANGED
|
@@ -2,12 +2,12 @@ description: >
|
|
|
2
2
|
Run PHP tests.
|
|
3
3
|
|
|
4
4
|
docker:
|
|
5
|
-
- image: cimg/php:
|
|
5
|
+
- image: cimg/php:8.0
|
|
6
6
|
- image: circleci/mysql:5.6.50
|
|
7
7
|
|
|
8
8
|
environment:
|
|
9
|
-
- WP_TESTS_DIR:
|
|
10
|
-
- WP_CORE_DIR:
|
|
9
|
+
- WP_TESTS_DIR: "/tmp/wordpress-tests-lib"
|
|
10
|
+
- WP_CORE_DIR: "/tmp/wordpress/"
|
|
11
11
|
steps:
|
|
12
12
|
- checkout
|
|
13
13
|
- run:
|
|
@@ -22,8 +22,7 @@ steps:
|
|
|
22
22
|
- run:
|
|
23
23
|
name: Run Tests
|
|
24
24
|
command: |
|
|
25
|
-
composer
|
|
26
|
-
composer global require "phpunit/phpunit=7.5.*"
|
|
25
|
+
composer update
|
|
27
26
|
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
|
|
28
|
-
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1
|
|
29
|
-
phpunit
|
|
27
|
+
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest
|
|
28
|
+
./vendor/bin/phpunit
|