-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dmrotransforms
- Loading branch information
Showing
479 changed files
with
21,835 additions
and
2,030 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 |
---|---|---|
|
@@ -39,14 +39,14 @@ jobs: | |
echo "DIFF_DOCUMENTS=${DIFF_DOCUMENTS}" >> $GITHUB_ENV | ||
- name: Checkout HEAD | ||
if: ${{ env.DIFF_DOCUMENTS }} | ||
if: env.DIFF_DOCUMENTS | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
path: pr_head | ||
|
||
- name: Get changed content from HEAD | ||
if: ${{ env.DIFF_DOCUMENTS }} | ||
if: env.DIFF_DOCUMENTS | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "mdn-bot" | ||
|
@@ -62,21 +62,21 @@ jobs: | |
git commit -m "Code from PR head" | ||
- name: Setup Node.js environment | ||
if: ${{ env.DIFF_DOCUMENTS }} | ||
if: env.DIFF_DOCUMENTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
|
||
- name: Install all yarn packages | ||
if: ${{ env.DIFF_DOCUMENTS }} | ||
if: env.DIFF_DOCUMENTS | ||
run: yarn --frozen-lockfile | ||
env: | ||
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Lint and format markdown files | ||
if: ${{ env.DIFF_DOCUMENTS }} | ||
if: env.DIFF_DOCUMENTS | ||
run: | | ||
# Generate random delimiter | ||
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings | ||
|
@@ -120,13 +120,13 @@ jobs: | |
git diff | ||
- name: Setup reviewdog | ||
if: ${{ env.FILES_MODIFIED == 'true' || env.MD_LINT_FAILED == 'true' }} | ||
if: env.FILES_MODIFIED == 'true' || env.MD_LINT_FAILED == 'true' | ||
uses: reviewdog/action-setup@v1 | ||
with: | ||
reviewdog_version: latest | ||
|
||
- name: Suggest changes using diff | ||
if: ${{ env.FILES_MODIFIED == 'true' }} | ||
if: env.FILES_MODIFIED == 'true' | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
|
@@ -141,7 +141,7 @@ jobs: | |
-reporter=github-pr-review < "${TMPFILE}" | ||
- name: Add reviews for markdownlint errors | ||
if: ${{ env.MD_LINT_FAILED == 'true' }} | ||
if: env.MD_LINT_FAILED == 'true' | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
|
@@ -154,7 +154,7 @@ jobs: | |
-reporter="github-pr-review" | ||
- name: Fail if any issues pending | ||
if: ${{ env.FILES_MODIFIED == 'true' || env.MD_LINT_FAILED == 'true' || env.FM_LINT_FAILED == 'true' }} | ||
if: env.FILES_MODIFIED == 'true' || env.MD_LINT_FAILED == 'true' || env.FM_LINT_FAILED == 'true' | ||
env: | ||
MD_LINT_FAILED: ${{ env.MD_LINT_FAILED }} | ||
FM_LINT_FAILED: ${{ env.FM_LINT_FAILED }} | ||
|
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 |
---|---|---|
|
@@ -7,14 +7,14 @@ name: PR review companion | |
|
||
on: | ||
workflow_run: | ||
workflows: ["PR Test", "PR Test - new CI"] | ||
workflows: ["PR Test", "PR Test Legacy"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
if: github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: "Download artifact" | ||
uses: actions/download-artifact@v4 | ||
|
@@ -26,26 +26,26 @@ jobs: | |
run-id: ${{ github.event.workflow_run.id }} | ||
|
||
- name: Check for artifacts | ||
if: ${{ hashFiles('build/') != '' }} | ||
if: hashFiles('build/') != '' | ||
run: | | ||
echo "HAS_ARTIFACT=true" >> "$GITHUB_ENV" | ||
- uses: actions/checkout@v4 | ||
if: ${{ env.HAS_ARTIFACT }} | ||
if: env.HAS_ARTIFACT | ||
with: | ||
repository: mdn/yari | ||
path: yari | ||
|
||
- name: Install Python | ||
if: ${{ env.HAS_ARTIFACT }} | ||
if: env.HAS_ARTIFACT | ||
id: setup-python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
# See https://www.peterbe.com/plog/install-python-poetry-github-actions-faster | ||
- name: Load cached ~/.local | ||
if: ${{ env.HAS_ARTIFACT }} | ||
if: env.HAS_ARTIFACT | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.local | ||
|
@@ -54,14 +54,14 @@ jobs: | |
key: dotlocal-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-0 | ||
|
||
- name: Install Python poetry | ||
if: ${{ env.HAS_ARTIFACT }} | ||
if: env.HAS_ARTIFACT | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Load cached venv | ||
if: ${{ env.HAS_ARTIFACT }} | ||
if: env.HAS_ARTIFACT | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
|
@@ -71,19 +71,19 @@ jobs: | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ steps.setup-python.outputs.python-version }}-0 | ||
|
||
- name: Install poetry dependencies | ||
if: ${{ env.HAS_ARTIFACT && steps.cached-poetry-dependencies.outputs.cache-hit != 'true' }} | ||
if: env.HAS_ARTIFACT && steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
cd yari/deployer | ||
poetry install --no-interaction --no-root | ||
- name: Install Deployer | ||
if: ${{ env.HAS_ARTIFACT }} | ||
if: env.HAS_ARTIFACT | ||
run: | | ||
cd yari/deployer | ||
poetry install --no-interaction | ||
- name: Deploy and analyze built content | ||
if: ${{ env.HAS_ARTIFACT }} | ||
if: env.HAS_ARTIFACT | ||
env: | ||
BUILD_OUT_ROOT: ${{ github.workspace }}/build | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -714,6 +714,7 @@ sundried | |
sunsetting | ||
supercookie | ||
superdomain | ||
superpowered | ||
superscaling | ||
supersets | ||
SVCB | ||
|
Oops, something went wrong.