3434 id : set-matrix
3535 with :
3636 script : |
37- // We only want to run the 'translations ' suite when we know
37+ // We only want to run the 'languages ' suite when we know
3838 // we're on the private docs-internal repo because only that
39- // one has ability to clone the remote (private) translations
39+ // one has ability to clone the remote (private) languages
4040 // repos.
4141 // You can run multiple paths per suite as space-separated in `path`.
4242 // Note that *if you add* to this, remember to also add that
6464 { name: 'search', path: 'src/search/tests', },
6565 { name: 'shielding', path: 'src/shielding/tests', },
6666 context.payload.repository.full_name === 'github/docs-internal' &&
67- { name: 'translations ', path: 'tests/translations ', },
67+ { name: 'languages ', path: 'src/languages/tests ', },
6868 { name: 'unit', path: 'tests/unit', },
6969 // { name: 'tools', path: 'src/tools/tests', }
7070 { name: 'webhooks', path: 'src/webhooks/tests', },
8888 uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
8989
9090 - uses : ./.github/actions/setup-elasticsearch
91- if : ${{ matrix.name == 'search' || matrix.name == 'translations ' }}
91+ if : ${{ matrix.name == 'search' || matrix.name == 'languages ' }}
9292
9393 - uses : ./.github/actions/node-npm-setup
9494
@@ -117,7 +117,7 @@ jobs:
117117 tests/fixtures/data
118118
119119 - name : Clone all translations
120- if : ${{ matrix.name == 'translations ' }}
120+ if : ${{ matrix.name == 'languages ' }}
121121 uses : ./.github/actions/clone-translations
122122 with :
123123 token : ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
@@ -169,7 +169,7 @@ jobs:
169169 - name : Index fixtures into the local Elasticsearch
170170 # For the sake of saving time, only run this step if the group
171171 # is one that will run tests against an Elasticsearch on localhost.
172- if : ${{ matrix.name == 'search' || matrix.name == 'translations ' }}
172+ if : ${{ matrix.name == 'search' || matrix.name == 'languages ' }}
173173 run : npm run index-test-fixtures
174174
175175 - name : Run tests
@@ -178,8 +178,8 @@ jobs:
178178 CHANGELOG_CACHE_FILE_PATH : tests/fixtures/changelog-feed.json
179179 # By default, when `process.env.NODE_ENV === 'test'` it forces the
180180 # tests run only in English. The exception is the
181- # `tests/translations/ ` suite which needs all languages to be set up.
182- ENABLED_LANGUAGES : ${{ matrix.name == 'translations ' && 'all' || '' }}
181+ # `languages ` suite which needs all languages to be set up.
182+ ENABLED_LANGUAGES : ${{ matrix.name == 'languages ' && 'all' || '' }}
183183 ROOT : ${{ (matrix.name == 'rendering-fixtures' || matrix.name == 'pageinfo' || matrix.name == 'landings' ) && 'tests/fixtures' || '' }}
184184 TRANSLATIONS_FIXTURE_ROOT : ${{ (matrix.name == 'rendering-fixtures' || matrix.name == 'pageinfo') && 'tests/fixtures/translations' || '' }}
185185 run : npm test -- ${{ matrix.path }}/
0 commit comments