Skip to content

Commit

Permalink
Merge branch 'main' into add/bun
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Dec 5, 2024
2 parents be0e3a0 + f061663 commit 4d0eabb
Show file tree
Hide file tree
Showing 158 changed files with 4,935 additions and 3,963 deletions.
1 change: 0 additions & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ phpunit-integration-multisite.xml.dist
README.md
rollup.config.js
scoper.inc.php
SECURITY.md
tsconfig.json
tsconfig.shared.json
webpack.config.cjs
Expand Down
27 changes: 20 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,8 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"EXPERIMENTAL_useProjectService": true,
"warnOnUnsupportedTypeScriptVersion": false,
"project": [
".tsconfig.json"
]
"projectService": true,
"warnOnUnsupportedTypeScriptVersion": false
},
"rules": {
"@typescript-eslint/no-shadow": ["error",
Expand Down Expand Up @@ -439,8 +436,16 @@
],
"jest/prefer-mock-promise-shorthand": "off",
"jest/prefer-snapshot-hint": "off",
"jsdoc/require-jsdoc": "off",
"jest/unbound-method": "off",
"jest/padding-around-all": "off",
"jest/padding-around-after-each-blocks": "off",
"jest/padding-around-after-all-blocks": "off",
"jest/padding-around-before-all-blocks": "off",
"jest/padding-around-before-each-blocks": "off",
"jest/padding-around-describe-blocks": "off",
"jest/padding-around-expect-groups": "off",
"jest/padding-around-test-blocks": "off",
"jsdoc/require-jsdoc": "off",
"testing-library/no-await-sync-events": "error",
"testing-library/no-debugging-utils": "error",
"testing-library/no-dom-import": "error"
Expand Down Expand Up @@ -576,7 +581,15 @@
}
],
"jest/prefer-snapshot-hint": "off",
"jest/unbound-method": "off"
"jest/unbound-method": "off",
"jest/padding-around-all": "off",
"jest/padding-around-after-each-blocks": "off",
"jest/padding-around-after-all-blocks": "off",
"jest/padding-around-before-all-blocks": "off",
"jest/padding-around-before-each-blocks": "off",
"jest/padding-around-describe-blocks": "off",
"jest/padding-around-expect-groups": "off",
"jest/padding-around-test-blocks": "off"
},
"globals": {
"browser": "readonly",
Expand Down
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ updates:
typescript-eslint:
patterns:
- '@typescript-eslint/*'
babel:
patterns:
- 'babel-*'
- '@babel/*'
oxlint:
patterns:
- 'oxlint'
- 'eslint-plugin-oxlint'
ignore:
# styled-components is not yet compatible.
- dependency-name: 'stylis-plugin-rtl'
Expand Down
12 changes: 6 additions & 6 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@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
disable-file-monitoring: true
egress-policy: block
Expand All @@ -101,7 +101,7 @@ jobs:
54.185.253.63:443
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand All @@ -126,12 +126,12 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand Down Expand Up @@ -173,12 +173,12 @@ jobs:
# Upload ZIP file to GCS for use in QA environment.

- name: Authenticate
uses: google-github-actions/auth@8254fb75a33b976a221574d287e93919e6a36f70
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@f0990588f1e5b5af6827153b93673613abdc6ec7
uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a
with:
project_id: ${{ secrets.GCP_PROJECT_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@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
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@8254fb75a33b976a221574d287e93919e6a36f70
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@f0990588f1e5b5af6827153b93673613abdc6ec7
uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Initialize CodeQL
uses: github/codeql-action/init@e2b3eafc8d227b0241d48be5f425d47c2d750a13
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e2b3eafc8d227b0241d48be5f425d47c2d750a13
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88
4 changes: 2 additions & 2 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand All @@ -47,7 +47,7 @@ jobs:
run: bun run storybook:build

- name: Checkout gh-pages
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: gh-pages
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
Expand Down
4 changes: 2 additions & 2 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@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
disable-sudo: true
disable-file-monitoring: true
Expand All @@ -74,7 +74,7 @@ jobs:
54.185.253.63:443
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -57,7 +57,7 @@ jobs:
tools: wp-cli

- name: Install latest version of i18n-command
run: wp package install wp-cli/i18n-command:dev-main
run: wp package install wp-cli/i18n-command:@stable

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
disable-file-monitoring: true
egress-policy: block
Expand All @@ -55,7 +55,7 @@ jobs:
dl.cloudsmith.io:443
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup PHP
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-plugin-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
environment: Production
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand Down Expand Up @@ -94,18 +94,18 @@ jobs:
needs: [dry-run]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}

# See go/npm-publish
- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
Loading

0 comments on commit 4d0eabb

Please sign in to comment.