Skip to content

Commit 747bf2a

Browse files
authored
Merge pull request #113 from liip/fix/update-dependencies
fix(): Update dependencies
2 parents 412305c + 50756c7 commit 747bf2a

38 files changed

Lines changed: 5247 additions & 5347 deletions

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build
44
!.*.js
55
snapshots.js
66
cypress/index.d.ts
7+
release/

.eslintrc.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ module.exports = {
1212
// Use cypress/recommended plugin for cypress tests.
1313
files: [ 'cypress/**/*.js' ],
1414
extends: [ 'plugin:cypress/recommended' ],
15-
rules: {
16-
'jest/expect-expect': [
17-
'error',
18-
{ assertFunctionNames: [ 'expect', 'cy' ] },
19-
],
20-
},
2115
},
2216
],
2317
};

.github/workflows/lint-test-deploy.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
strategy:
3838
matrix:
39-
wp: [ '5.7', '5.8', '5.9' ]
39+
wp: [ '5.7', '5.8', '5.9', '6.0' ]
4040

4141
steps:
4242
- uses: actions/checkout@v3
@@ -66,46 +66,13 @@ jobs:
6666
- name: Running PHP unit tests
6767
run: npm run test:unit:php:ci
6868

69-
tests-wp-60:
70-
name: Tests WordPress 6.0
71-
72-
runs-on: ubuntu-latest
73-
74-
steps:
75-
- uses: actions/checkout@v3
76-
77-
- name: Use Node.js 16
78-
uses: actions/setup-node@v3
79-
with:
80-
node-version: 16
81-
82-
- name: Install dependencies
83-
run: |
84-
npm ci
85-
composer install
86-
87-
- name: "Configure environment with WP 6.0"
88-
run: |
89-
echo -e '{\n\t"core": "https://wordpress.org/wordpress-6.0-RC2.zip"\n}' > ./.wp-env.override.json
90-
91-
- name: Install WordPress
92-
run: |
93-
chmod -R 767 ./ # TODO: Possibly integrate in wp-env
94-
npm run wp-env start
95-
96-
- name: Running JavaScript E2E tests
97-
run: npm run test:e2e
98-
99-
- name: Running PHP unit tests
100-
run: npm run test:unit:php:ci
101-
10269
deploy-dry-run:
10370
name: '[DRY RUN] Deploy'
10471

10572
# only run on master but not tags
10673
if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/') }}
10774

108-
needs: [ lint, tests, 'tests-wp-60' ]
75+
needs: [ lint, tests ]
10976

11077
runs-on: ubuntu-latest
11178

@@ -124,7 +91,7 @@ jobs:
12491
# only run on tags
12592
if: startsWith(github.ref, 'refs/tags/')
12693

127-
needs: [ lint, tests, 'tests-wp-60' ]
94+
needs: [ lint, tests ]
12895

12996
runs-on: ubuntu-latest
13097

.wp-env.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"core": "https://wordpress.org/wordpress-6.0-RC2.zip",
2+
"core": "WordPress/WordPress#6.0.1",
33
"plugins": [ "." ],
44
"themes": [
55
"./test-themes/bootstrap"

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '880a7b58237fe7651d7b3ff82836e11b');
1+
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '0a2b1fb09f220caef635');

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/settings.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array(), 'version' => 'f0104b60f4e97fe8fc9db16e1886cf55');
1+
<?php return array('dependencies' => array(), 'version' => '4f343567074889394f03');

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"email": "contact@liip.ch"
2525
},
2626
"require-dev": {
27-
"squizlabs/php_codesniffer": "^3.6",
27+
"squizlabs/php_codesniffer": "^3.7",
2828
"wp-coding-standards/wpcs": "dev-develop",
29-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
30-
"wp-phpunit/wp-phpunit": "^5.8",
29+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
30+
"wp-phpunit/wp-phpunit": "^6.0",
3131
"yoast/phpunit-polyfills": "^1.0"
3232
},
3333
"minimum-stability": "dev",

composer.lock

Lines changed: 24 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cypress.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const { defineConfig } = require( 'cypress' );
2+
3+
module.exports = defineConfig( {
4+
video: false,
5+
screenshotOnRunFailure: false,
6+
retries: {
7+
runMode: 2,
8+
openMode: 0,
9+
},
10+
e2e: {
11+
// We've imported your old cypress plugins here.
12+
// You may want to clean this up later by importing these.
13+
setupNodeEvents( on, config ) {
14+
return require( './cypress/plugins/index.js' )( on, config );
15+
},
16+
baseUrl: 'http://localhost:8889',
17+
},
18+
} );

0 commit comments

Comments
 (0)