diff --git a/.github/workflows/article-api-docs.yml b/.github/workflows/article-api-docs.yml index be55be40cb..4f87a815b9 100644 --- a/.github/workflows/article-api-docs.yml +++ b/.github/workflows/article-api-docs.yml @@ -18,7 +18,7 @@ permissions: jobs: check-content-linter-rules-docs: - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' steps: - name: Checkout diff --git a/.github/workflows/content-lint-markdown.yml b/.github/workflows/content-lint-markdown.yml index ac80a26e1f..f097e34e36 100644 --- a/.github/workflows/content-lint-markdown.yml +++ b/.github/workflows/content-lint-markdown.yml @@ -20,7 +20,7 @@ permissions: jobs: lint-content: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest steps: - name: Check out repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/content-linter-rules-docs.yml b/.github/workflows/content-linter-rules-docs.yml index ebdcb64ca5..fe1dc03ca7 100644 --- a/.github/workflows/content-linter-rules-docs.yml +++ b/.github/workflows/content-linter-rules-docs.yml @@ -21,7 +21,7 @@ permissions: jobs: check-content-linter-rules-docs: - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' steps: - name: Checkout diff --git a/.github/workflows/count-translation-corruptions.yml b/.github/workflows/count-translation-corruptions.yml index 87c96c225b..9b6b134a66 100644 --- a/.github/workflows/count-translation-corruptions.yml +++ b/.github/workflows/count-translation-corruptions.yml @@ -21,7 +21,7 @@ permissions: jobs: count-translation-corruptions: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest steps: - name: Checkout English repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/generate-code-scanning-query-lists.yml b/.github/workflows/generate-code-scanning-query-lists.yml index 1c62e4e779..200b5b3527 100644 --- a/.github/workflows/generate-code-scanning-query-lists.yml +++ b/.github/workflows/generate-code-scanning-query-lists.yml @@ -29,7 +29,7 @@ permissions: jobs: generate-query-lists: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest steps: - name: Checkout repository code uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/headless-tests.yml b/.github/workflows/headless-tests.yml index 5c1ced60b3..6b1f78b76a 100644 --- a/.github/workflows/headless-tests.yml +++ b/.github/workflows/headless-tests.yml @@ -25,7 +25,7 @@ env: jobs: playwright-tests: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest strategy: # When we're comfortable a11y tests aren't generating false positives and helping, # let's remove the matrix and just run playwright in a single job. diff --git a/.github/workflows/index-autocomplete-search.yml b/.github/workflows/index-autocomplete-search.yml index fb9fdfe892..79582d796a 100644 --- a/.github/workflows/index-autocomplete-search.yml +++ b/.github/workflows/index-autocomplete-search.yml @@ -20,7 +20,7 @@ permissions: jobs: index-autocomplete-elasticsearch: if: ${{ github.repository == 'github/docs-internal' }} - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/index-general-search-pr.yml b/.github/workflows/index-general-search-pr.yml index 70e565cf25..96127559d3 100644 --- a/.github/workflows/index-general-search-pr.yml +++ b/.github/workflows/index-general-search-pr.yml @@ -33,7 +33,7 @@ env: jobs: dryRunElasticsearchIndexes: - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest if: github.repository == 'github/docs-internal' steps: - name: Check out repo diff --git a/.github/workflows/index-general-search.yml b/.github/workflows/index-general-search.yml index 90e086b3cf..ce4abbbef3 100644 --- a/.github/workflows/index-general-search.yml +++ b/.github/workflows/index-general-search.yml @@ -98,7 +98,7 @@ jobs: needs: figureOutMatrix name: Update indexes if: ${{ github.repository == 'github/docs-internal' && needs.figureOutMatrix.outputs.matrix != '[]' }} - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest strategy: fail-fast: false # When it's only English (i.e. a simple array of ['en']), this value diff --git a/.github/workflows/keep-caches-warm.yml b/.github/workflows/keep-caches-warm.yml index 35163e1fd6..04daa6d9c0 100644 --- a/.github/workflows/keep-caches-warm.yml +++ b/.github/workflows/keep-caches-warm.yml @@ -26,7 +26,7 @@ permissions: jobs: keep-caches-warm: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest steps: - name: Check out repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/link-check-daily.yml b/.github/workflows/link-check-daily.yml index 9c4ffa0055..1f0876acbd 100644 --- a/.github/workflows/link-check-daily.yml +++ b/.github/workflows/link-check-daily.yml @@ -17,7 +17,7 @@ jobs: check_all_english_links: name: Check all links if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest steps: - name: Check that gh CLI is installed run: gh --version diff --git a/.github/workflows/link-check-on-pr.yml b/.github/workflows/link-check-on-pr.yml index df5d39e47d..c91fe77e93 100644 --- a/.github/workflows/link-check-on-pr.yml +++ b/.github/workflows/link-check-on-pr.yml @@ -22,7 +22,7 @@ concurrency: jobs: check-links: - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' steps: - name: Checkout diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index 0ee0a8758b..7506716f6d 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -20,7 +20,7 @@ concurrency: jobs: lint-code: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest steps: - name: Check out repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/lint-entire-content-data-markdown.yml b/.github/workflows/lint-entire-content-data-markdown.yml index b2d57e2e36..42699314f9 100644 --- a/.github/workflows/lint-entire-content-data-markdown.yml +++ b/.github/workflows/lint-entire-content-data-markdown.yml @@ -17,7 +17,7 @@ jobs: lint-entire-content-data: name: Lint entire content and data directories if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest steps: - name: Check that gh CLI is installed run: gh --version diff --git a/.github/workflows/local-dev.yml b/.github/workflows/local-dev.yml index 55acf15eaf..1b6d0d4b36 100644 --- a/.github/workflows/local-dev.yml +++ b/.github/workflows/local-dev.yml @@ -16,7 +16,7 @@ permissions: jobs: local-dev: if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest steps: - name: Check out repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 @@ -51,7 +51,7 @@ jobs: PLAYWRIGHT_RETRIES: 0 TEST_EARLY_ACCESS: ${{ github.repository == 'github/docs-internal' }} # workaround for https://github.com/nodejs/node/issues/59364 as of 22.18.0 - NODE_OPTIONS: '--no-experimental-strip-types' + NODE_OPTIONS: '--no-experimental-strip-types --max-old-space-size=8192' run: npm run playwright-test -- playwright-local-dev - name: Start server in the background diff --git a/.github/workflows/readability.yml b/.github/workflows/readability.yml index bc338c1307..32ffec056a 100644 --- a/.github/workflows/readability.yml +++ b/.github/workflows/readability.yml @@ -25,7 +25,7 @@ permissions: jobs: readability-analysis: if: github.repository == 'github/docs-internal' - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest steps: - name: Check out repo with full history uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/sync-openapi.yml b/.github/workflows/sync-openapi.yml index 4344dd0ff8..f43b9ccc66 100644 --- a/.github/workflows/sync-openapi.yml +++ b/.github/workflows/sync-openapi.yml @@ -27,7 +27,7 @@ concurrency: jobs: generate-decorated-files: if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest steps: - name: Checkout repository code uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/test-changed-content.yml b/.github/workflows/test-changed-content.yml index fa7f561802..2e2548c7b7 100644 --- a/.github/workflows/test-changed-content.yml +++ b/.github/workflows/test-changed-content.yml @@ -21,7 +21,7 @@ permissions: jobs: test-changed-content: - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} steps: # Each of these ifs needs to be repeated at each step to make sure the required check still runs diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be7019e9b8..e9892fffce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,10 +27,7 @@ jobs: test: name: ${{ matrix.name }} if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' - - # Run on ubuntu-20.04-xl if the private repo or ubuntu-latest if the public repo - # See pull # 17442 in the private repo for context - runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} + runs-on: ubuntu-latest timeout-minutes: 60 strategy: fail-fast: false diff --git a/.github/workflows/validate-github-github-docs-urls.yml b/.github/workflows/validate-github-github-docs-urls.yml index 4f5609b0f4..d53df2636b 100644 --- a/.github/workflows/validate-github-github-docs-urls.yml +++ b/.github/workflows/validate-github-github-docs-urls.yml @@ -31,7 +31,7 @@ jobs: validate_github_github_docs_urls: name: Validate github/github docs URLs if: github.repository == 'github/docs-internal' - runs-on: ubuntu-20.04-xl + runs-on: ubuntu-latest steps: - name: Check out repo's default branch uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/package.json b/package.json index b5c18f05d1..6de1c29682 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "cmp-files": "tsx src/workflows/cmp-files.ts", "content-changes-table-comment": "tsx src/workflows/content-changes-table-comment.ts", "copy-fixture-data": "tsx src/tests/scripts/copy-fixture-data.ts", - "count-translation-corruptions": "tsx src/languages/scripts/count-translation-corruptions.ts", + "count-translation-corruptions": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsx src/languages/scripts/count-translation-corruptions.ts", "create-enterprise-issue": "tsx src/ghes-releases/scripts/create-enterprise-issue.ts", "debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon --inspect src/frame/server.ts", "delete-orphan-translation-files": "tsx src/workflows/delete-orphan-translation-files.ts",