Skip to content

Commit

Permalink
Merge branch 'main' into try/tasks-vision
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuragVasanwala authored Jul 19, 2023
2 parents 9440559 + e5ea5d7 commit c2f4720
Show file tree
Hide file tree
Showing 481 changed files with 23,316 additions and 25,319 deletions.
13 changes: 9 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@
}],
"jsdoc/require-returns": "error",
"jsdoc/require-param-description": "error",
"jsdoc/tag-lines": [
"error",
"any",
{ "startLines": 1 }
],
"jsdoc/valid-types": "error",
"eslint-comments/no-unused-disable": "error",
"eslint-comments/require-description": "error",
Expand Down Expand Up @@ -323,16 +328,16 @@
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
"plugin:@typescript-eslint/recommended-type-checked"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false,
"project": [
"./packages/*/tsconfig.json"
]
},
"rules": {
"@typescript-eslint/no-duplicate-imports": "error",
"@typescript-eslint/no-shadow": ["error",
{
"ignoreOnInitialization": true
Expand Down Expand Up @@ -606,7 +611,7 @@
{
"files": [
"packages/commander/**/*.ts",
"packages/fonts/scripts/**/*.js",
"packages/fonts/scripts/**/*.ts",
"packages/migration/scripts/**/*.js",
"packages/templates/scripts/**/*.js",
"packages/text-sets/scripts/**/*.js"
Expand Down Expand Up @@ -635,7 +640,7 @@
"packages/story-editor/src/karma-tests.cjs",
"packages/eslint-import-resolver/**/*.cjs",
"packages/jest-resolver/**/*.cjs",
"packages/fonts/**/*.js",
"packages/fonts/**/*.ts",
"packages/commander/**/*.ts",
"packages/migration/scripts/**/*.js",
"packages/templates/scripts/**/*.js",
Expand Down
40 changes: 25 additions & 15 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,55 @@ updates:
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
interval: monthly
open-pull-requests-limit: 10
labels:
- Dependencies

- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 10
interval: monthly
open-pull-requests-limit: 15
labels:
- Dependencies
- JavaScript
groups:
wp-packages:
patterns:
- '@wordpress/*'
exclude-patterns:
- '@wordpress/element'
storybook:
patterns:
- 'storybook'
- '@storybook/*'
typescript-eslint:
patterns:
- '@typescript-eslint/*'
ignore:
# styled-components is not yet compatible.
- dependency-name: 'stylis-plugin-rtl'
versions:
- '>= 2'

# Package is ESM-only, can't use it just yet.
- dependency-name: 'markdown-table'
# Not all plugins are compatible yet
- dependency-name: 'rollup'
versions:
- '>= 3'

# Package is ESM-only, can't use it just yet.
- dependency-name: 'got'
# We have not yet upgraded to React 18.
- dependency-name: 'react'
versions:
- '>= 12'

# Best updated manually as they have very frequent updates.
- dependency-name: '@storybook/*'

# Best updated manually as they have very frequent updates.
- dependency-name: '@wordpress/*'
- '>= 118'
- dependency-name: 'react-dom'
versions:
- '>= 118'

- package-ecosystem: composer
directory: '/'
schedule:
interval: weekly
interval: monthly
open-pull-requests-limit: 10
labels:
- Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/add-milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: github.event.pull_request.merged == true
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
disable-sudo: true
egress-policy: block
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
RELEASE_ID: ${{ steps.release.outputs.release_id }}

- name: Retrieve linked issues
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
id: linked-issues
with:
script: |
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
disable-file-monitoring: true
egress-policy: block
Expand All @@ -98,12 +98,13 @@ jobs:
packagist.org:443
registry.npmjs.org:443
storage.googleapis.com:443
54.185.253.63:443
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -128,21 +129,21 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
with:
node-version-file: '.nvmrc'
cache: npm

- name: Setup PHP
uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b
with:
php-version: '8.0'
coverage: none
Expand All @@ -151,7 +152,7 @@ jobs:
- name: Install dependencies
run: npm ci
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
PUPPETEER_SKIP_DOWNLOAD: true

- name: Install PHP dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6
Expand All @@ -161,7 +162,7 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@4573031972107e0af692492ee967d9022deafd7b
with:
bun-version: latest
bun-version: '0.5.9'

- name: Build plugin
run: |
Expand All @@ -183,12 +184,12 @@ jobs:
# Upload ZIP file to GCS for use in QA environment.

- name: Authenticate
uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

Expand All @@ -201,7 +202,7 @@ jobs:

- name: Check if a comment was already made
id: find-comment
uses: peter-evans/find-comment@034abe94d3191f9c89d870519735beae326f2bdb
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: googleforcreators-bot
Expand All @@ -218,6 +219,7 @@ jobs:
id: get-comment-body
# Setting a multi-line output requires escaping line-feeds. See <https://github.community/t/set-output-truncates-multiline-strings/16852/3>.
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo 'COMMENT_BODY<<EOF' >> $GITHUB_ENV
echo 'Plugin builds for ${{ github.event.pull_request.head.sha }} are ready :bellhop_bell:!' >> $GITHUB_ENV
echo '- Download [development build](https://storage.googleapis.com/web-stories-wp-github-artifacts/${{ github.ref }}/web-stories-dev.zip?${{ github.sha }})' >> $GITHUB_ENV
Expand All @@ -230,7 +232,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
- name: Create or update comment on PR with links to plugin builds
uses: peter-evans/create-or-update-comment@67dcc547d311b736a8e6c5c236542148a47adc3d
uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa
with:
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.find-comment.outputs.comment-id }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cleanup-pr-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
disable-file-monitoring: true
disable-sudo: true
Expand All @@ -34,12 +34,12 @@ jobs:
raw.githubusercontent.com:443
- name: Authenticate
uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
disable-sudo: true
egress-policy: block
Expand All @@ -52,12 +52,12 @@ jobs:
objects.githubusercontent.com:443
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Initialize CodeQL
uses: github/codeql-action/init@04df1262e6247151b5ac09cd2c303ac36ad3f62b
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@04df1262e6247151b5ac09cd2c303ac36ad3f62b
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a
10 changes: 5 additions & 5 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
with:
node-version-file: '.nvmrc'
cache: npm

- name: Install dependencies
run: npm ci
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
PUPPETEER_SKIP_DOWNLOAD: true

- name: Build storyook
run: npm run storybook:build
Expand All @@ -62,15 +62,15 @@ jobs:
needs: [build-storybook]
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
ref: gh-pages
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint-css-js-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
timeout-minutes: 20
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
disable-sudo: true
disable-file-monitoring: true
Expand All @@ -74,23 +74,23 @@ jobs:
54.185.253.63:443
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
with:
node-version-file: '.nvmrc'
cache: npm

- name: Install dependencies
run: npm ci
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
PUPPETEER_SKIP_DOWNLOAD: true

- name: Setup Bun
uses: oven-sh/setup-bun@4573031972107e0af692492ee967d9022deafd7b
with:
bun-version: latest
bun-version: '0.5.9'

- name: Markdown Lint
run: npm run lint:md
Expand Down
Loading

0 comments on commit c2f4720

Please sign in to comment.