-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into main
* upstream/main: (288 commits) remove tests for obsolete search endpoints (mdn#3688) Limit non-English locales (mdn#3661) move footer icons to CSS bg images (mdn#3655) not all http:// links can be https:// (mdn#3657) add the lost part and update the translation for Express (mdn#3664) update the translation of the zh-TW (mdn#3663) Add a Specifications macro and extract a special specification section to the Document (mdn#3518) build(deps-dev): bump & migrate use-debounce to 6.0.0 (mdn#3684) build(deps-dev): bump puppeteer from 9.0.0 to 9.1.0 (mdn#3686) build(deps-dev): bump & migrate husky to 6.0.0 (mdn#3681) build(deps-dev): bump jest-environment-jsdom-sixteen from 1.0.3 to 2.0.0 (mdn#3615) More concurrent open npm PRs (mdn#3685) build(deps-dev): bump black from 21.4b0 to 21.4b2 in /deployer (mdn#3668) build(deps-dev): bump black in /testing/integration (mdn#3666) build(deps-dev): bump @babel/core from 7.13.16 to 7.14.0 (mdn#3683) build(deps-dev): bump jest-puppeteer from 5.0.2 to 5.0.3 (mdn#3680) build(deps): bump @mdn/browser-compat-data from 3.3.0 to 3.3.2 (mdn#3679) build(deps-dev): bump sass from 1.32.11 to 1.32.12 (mdn#3678) build(deps-dev): bump eslint-plugin-jest from 24.3.5 to 24.3.6 (mdn#3677) build(deps): bump http-proxy-middleware from 1.3.0 to 1.3.1 (mdn#3675) ...
- Loading branch information
Showing
200 changed files
with
13,146 additions
and
4,479 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
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
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 |
---|---|---|
|
@@ -72,7 +72,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
@@ -91,7 +91,7 @@ jobs: | |
python-version: "3.8" | ||
|
||
- name: Install Python poetry | ||
uses: snok/[email protected].2 | ||
uses: snok/[email protected].4 | ||
|
||
- name: Install deployer | ||
run: | | ||
|
@@ -204,7 +204,9 @@ jobs: | |
# XXX would be nice to validate here that $DEPLOYER_BUCKET_PREFIX is truthy | ||
echo "DEPLOYER_BUCKET_PREFIX=$DEPLOYER_BUCKET_PREFIX" | ||
poetry run deployer upload --prune ../client/build | ||
# Prune again once https://github.com/mdn/yari/issues/3323 is resolved. | ||
# poetry run deployer upload --prune --archived-files ../content/archived.txt ../client/build | ||
poetry run deployer upload ../client/build | ||
poetry run deployer update-lambda-functions ./aws-lambda | ||
# TODO | ||
# Execute command to tell the Dev CloudFront distribution to use the | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
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 |
---|---|---|
|
@@ -19,14 +19,14 @@ jobs: | |
python-version: "3.8" | ||
|
||
- name: Install Python poetry | ||
uses: snok/[email protected].2 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
with: | ||
path: deployer/.venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | ||
|
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
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 |
---|---|---|
|
@@ -51,6 +51,9 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
|
||
# Only run the scheduled workflows on the main repo. | ||
if: github.repository == 'mdn/yari' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -94,7 +97,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
@@ -113,7 +116,7 @@ jobs: | |
python-version: "3.8" | ||
|
||
- name: Install Python poetry | ||
uses: snok/[email protected].2 | ||
uses: snok/[email protected].4 | ||
|
||
- name: Install deployer | ||
run: | | ||
|
@@ -224,16 +227,11 @@ jobs: | |
# XXX would be nice to validate here that $DEPLOYER_BUCKET_PREFIX is truthy | ||
echo "DEPLOYER_BUCKET_PREFIX=$DEPLOYER_BUCKET_PREFIX" | ||
# Prune again once https://github.com/mdn/yari/issues/3323 is resolved. | ||
# poetry run deployer upload --prune --archived-files ../content/archived.txt ../client/build | ||
poetry run deployer upload ../client/build | ||
poetry run deployer update-lambda-functions ./aws-lambda | ||
# TODO: Depending on how long the upload takes, consider switching to | ||
# use `--update` in this command. It will skip the index re-creation | ||
# and "cake on". This is slightly faster and means no window of time | ||
# where the Elasticsearch server is nearly empty. | ||
# Consider doing something like a clean indexing on Sundays and | ||
# use `--update` on all the other week days. | ||
poetry run deployer search-index ../client/build --priority-prefix=en-us/docs/web | ||
poetry run deployer search-index ../client/build | ||
# Record the deployment in our Speedcurve account. This should always | ||
# be done after the upload of the documents and Lambda functions, as well | ||
|
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 |
---|---|---|
|
@@ -51,6 +51,9 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
|
||
# Only run the scheduled workflows on the main repo. | ||
if: github.repository == 'mdn/yari' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -94,7 +97,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
@@ -113,7 +116,7 @@ jobs: | |
python-version: "3.8" | ||
|
||
- name: Install Python poetry | ||
uses: snok/[email protected].2 | ||
uses: snok/[email protected].4 | ||
|
||
- name: Install deployer | ||
run: | | ||
|
@@ -165,13 +168,6 @@ jobs: | |
# kind of document it is. | ||
BUILD_ALWAYS_NO_ROBOTS: true | ||
|
||
# (peterbe, Mar 2021) This is unique to Stage and temporary. We want to | ||
# test the new Yari-based sign-in and sign-up. Setting this environment | ||
# variable changes the behavior of the "Sign in" link in the top navbar. | ||
# Once we know for sure that this new Yari sign in/up is working in Stage | ||
# we'll make this the new default can we can remove these lines. | ||
REACT_APP_USE_YARI_SIGNIN: true | ||
|
||
run: | | ||
if [ ${{ env.BUILD_ARCHIVED_CONTENT }} == "true" ]; then | ||
echo "Will build mdn/archived-content too" | ||
|
@@ -237,16 +233,11 @@ jobs: | |
# XXX would be nice to validate here that $DEPLOYER_BUCKET_PREFIX is truthy | ||
echo "DEPLOYER_BUCKET_PREFIX=$DEPLOYER_BUCKET_PREFIX" | ||
poetry run deployer upload --prune ../client/build | ||
# Prune again once https://github.com/mdn/yari/issues/3323 is resolved. | ||
# poetry run deployer upload --prune --archived-files ../content/archived.txt ../client/build | ||
poetry run deployer upload ../client/build | ||
poetry run deployer update-lambda-functions ./aws-lambda | ||
# TODO: Depending on how long the upload takes, consider switching to | ||
# use `--update` in this command. It will skip the index re-creation | ||
# and "cake on". This is slightly faster and means no window of time | ||
# where the Elasticsearch server is nearly empty. | ||
# Consider doing something like a clean indexing on Sundays and | ||
# use `--update` on all the other week days. | ||
poetry run deployer search-index ../client/build --priority-prefix=en-us/docs/web | ||
poetry run deployer search-index ../client/build | ||
# Record the deployment in our Speedcurve account. This should always | ||
# be done after the upload of the documents and Lambda functions, as well | ||
|
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
node-version: "12" | ||
|
||
- name: Cache node_modules | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
id: cached-node_modules | ||
with: | ||
path: | | ||
|
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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn pretty-quick --staged && yarn install --ignore-scripts |
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.