Skip to content

Commit

Permalink
Resyncing with latest trunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed Aug 11, 2022
2 parents e55bab4 + 86fa3dd commit ba4847a
Show file tree
Hide file tree
Showing 422 changed files with 8,752 additions and 3,252 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ module.exports = {
{
name: 'lodash',
importNames: [
'capitalize',
'chunk',
'clamp',
'compact',
'concat',
'countBy',
'defaults',
'defaultTo',
'delay',
'differenceWith',
'dropRight',
'each',
Expand All @@ -103,15 +105,18 @@ module.exports = {
'isBoolean',
'isFinite',
'isFunction',
'isMatch',
'isNil',
'isNumber',
'isObject',
'isObjectLike',
'isPlainObject',
'isString',
'isUndefined',
'keyBy',
'keys',
'lowerCase',
'maxBy',
'memoize',
'negate',
'noop',
Expand All @@ -125,6 +130,7 @@ module.exports = {
'reverse',
'size',
'snakeCase',
'startsWith',
'stubFalse',
'stubTrue',
'sum',
Expand All @@ -136,6 +142,8 @@ module.exports = {
'uniqueId',
'uniqWith',
'values',
'words',
'zip',
],
message:
'This Lodash method is not recommended. Please use native functionality instead. If using `memoize`, please use `memize` instead.',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ jobs:
run: |
IFS='.' read -r -a VERSION_ARRAY <<< "${VERSION}"
MILESTONE="Gutenberg ${VERSION_ARRAY[0]}.${VERSION_ARRAY[1]}"
npm run changelog -- --milestone="$MILESTONE" --unreleased > release-notes.txt
npm run other:changelog -- --milestone="$MILESTONE" --unreleased > release-notes.txt
sed -ie '1,6d' release-notes.txt
if [[ ${{ needs.bump-version.outputs.new_version }} != *"rc"* ]]; then
# Include previous RCs' release notes, if any
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/end2end-test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Run the tests
run: |
npm run test-e2e:playwright
npm run test:e2e:playwright
- name: Archive debug artifacts (screenshots, traces)
uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571 # v2.2.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Performances Tests
name: Performance Tests

on:
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: npm run build:package-types

- name: Check local changes
run: npm run check-local-changes
run: npm run other:check-local-changes

- name: License compatibility
run: npm run check-licenses
run: npm run other:check-licenses
10 changes: 5 additions & 5 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
npx lerna run build
- name: Running the tests
run: npm run test-unit -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"
run: npm run test:unit -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"

- name: Running the date tests
run: npm run test-unit:date -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"
run: npm run test:unit:date -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"

unit-php:
name: PHP
Expand All @@ -75,14 +75,14 @@ jobs:
npm run wp-env start
- name: Running lint check
run: npm run lint-php
run: npm run lint:php

- name: Running single site unit tests
run: npm run test-unit-php
run: npm run test:unit:php
if: ${{ success() || failure() }}

- name: Running multisite unit tests
run: npm run test-unit-php-multisite
run: npm run test:unit:php:multisite
if: ${{ success() || failure() }}

mobile-unit-js:
Expand Down
2 changes: 1 addition & 1 deletion bin/api-docs/are-api-docs-unstaged.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const getUnstagedReadmes = () =>
'\n',
'Some API docs may be out of date:',
unstagedReadmes.toString(),
'Either build and stage them with npm run api-docs:blocks or continue with --no-verify.',
'Either build and stage them with npm run docs:blocks or continue with --no-verify.',
'\n'
)
);
Expand Down
2 changes: 1 addition & 1 deletion bin/plugin/commands/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ async function setUpGitBranch( branch, environmentDirectory ) {
*/
async function runTestSuite( testSuite, performanceTestDirectory ) {
await runShellScript(
`npm run test-performance -- packages/e2e-tests/specs/performance/${ testSuite }.test.js`,
`npm run test:performance -- packages/e2e-tests/specs/performance/${ testSuite }.test.js`,
performanceTestDirectory
);
const rawResults = await readJSONFile(
Expand Down
6 changes: 3 additions & 3 deletions bin/plugin/commands/test/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ describe( 'getFormattedItemDescription', () => {
describe( 'getChangelog', () => {
test( 'verify that the changelog is properly formatted', () => {
// The fixture with the list of pull requests was generated by running the following command:
// npm run changelog -- --milestone="Gutenberg 11.3"
// npm run other:changelog -- --milestone="Gutenberg 11.3"
// The response from the `fetchAllPullRequests` call in the `getChangelog` method was stored in the JSON file.
expect( getChangelog( pullRequests ) ).toMatchSnapshot();
} );
Expand All @@ -471,15 +471,15 @@ describe( 'getChangelog', () => {
describe( 'getContributorProps', () => {
test( 'verify that the contributors props are properly formatted', () => {
// The fixture with the list of pull requests was generated by running the following command:
// npm run changelog -- --milestone="Gutenberg 11.3"
// npm run other:changelog -- --milestone="Gutenberg 11.3"
expect( getContributorProps( pullRequests ) ).toMatchSnapshot();
} );
} );

describe( 'getContributorList', () => {
test( 'verify that the contributors list is properly formatted', () => {
// The fixture with the list of pull requests was generated by running the following command:
// npm run changelog -- --milestone="Gutenberg 11.3"
// npm run other:changelog -- --milestone="Gutenberg 11.3"
expect( getContributorsList( pullRequests ) ).toMatchSnapshot();
} );
} );
2 changes: 1 addition & 1 deletion bin/unit-test-date.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ locales=(en_US ja_JP)

for timezone in "${timezones[@]}"; do
for locale in "${locales[@]}"; do
TZ=$timezone LANG=$locale npm run test-unit -- packages/date "$@" &
TZ=$timezone LANG=$locale npm run test:unit -- packages/date "$@" &
pids+=($!)
pidsTimezones+=($timezone)
pidsLocales+=($locale)
Expand Down
Loading

0 comments on commit ba4847a

Please sign in to comment.