This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into fix/use-forced-layout
- Loading branch information
Showing
77 changed files
with
7,536 additions
and
8,677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Basic set up for three package managers | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'monthly' | ||
open-pull-requests-limit: 10 | ||
|
||
# Maintain dependencies for npm | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
open-pull-requests-limit: 10 | ||
|
||
# Maintain dependencies for Composer | ||
- package-ecosystem: 'composer' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Report Flaky Tests | ||
|
||
on: | ||
workflow_run: | ||
workflows: ['E2E tests'] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
report-to-issues: | ||
name: Report to GitHub issues | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
# Checkout defaults to using the branch which triggered the event, which | ||
# isn't necessarily `trunk` (e.g. in the case of a merge). | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: WordPress/gutenberg | ||
ref: trunk | ||
|
||
- name: Use desired version of NodeJS | ||
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
|
||
- name: Npm install and build | ||
# TODO: We don't have to build the entire project, just the action itself. | ||
run: | | ||
npm ci | ||
npm run build:packages | ||
- name: Report flaky tests | ||
uses: ./packages/report-flaky-tests | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' | ||
label: 'type: flaky test' | ||
artifact-name-prefix: flaky-tests-report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Generate ZIP file | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
generate-zip-file: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Setup node version and npm cache | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
|
||
- name: Install Node dependencies | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
run: npm ci --no-optional | ||
|
||
- name: Generate ZIP file | ||
run: npm run package-plugin:deploy | ||
|
||
- name: Create temp folder | ||
run: mkdir wc-blocks-pr-release__temp | ||
|
||
- name: Rename and move ZIP file | ||
run: mv woocommerce-gutenberg-products-block.zip wc-blocks-pr-release__temp/woocommerce-gutenberg-products-block-${{ github.event.pull_request.number }}.zip | ||
|
||
- name: Transfer ZIP file via SFTP | ||
uses: AbleLincoln/[email protected] | ||
with: | ||
host: ${{ secrets.FTP_HOST }} | ||
port: 22 | ||
username: ${{ secrets.FTP_USER }} | ||
password: ${{ secrets.FTP_PASS }} | ||
sourceDir: ./wc-blocks-pr-release__temp/ | ||
targetDir: ${{ secrets.FTP_DIR }} | ||
|
||
- name: Add release ZIP URL as comment to the PR | ||
uses: mshick/add-pr-comment@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
message: | | ||
The release ZIP for this PR is accessible via: | ||
``` | ||
https://wcblocks.wpcomstaging.com/wp-content/uploads/woocommerce-gutenberg-products-block-${{ github.event.pull_request.number }}.zip | ||
``` | ||
allow-repeats: true | ||
|
||
- name: Delete ZIP file | ||
run: rm -rf wc-blocks-pr-release__temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.scss | ||
*.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
assets/js/base/components/cart-checkout/shipping-rates-control-package/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.