diff --git a/.github/workflows/sync-search-elasticsearch.yml b/.github/workflows/sync-search-elasticsearch.yml index 2426fd8ced..70047c5978 100644 --- a/.github/workflows/sync-search-elasticsearch.yml +++ b/.github/workflows/sync-search-elasticsearch.yml @@ -183,7 +183,7 @@ jobs: # not exist. VERSION: ${{ github.event.inputs.version }} run: | - ./script/search/index-elasticsearch.js /tmp/records \ + ./src/search/scripts/index-elasticsearch.js /tmp/records \ --language ${{ matrix.language }} \ - name: Check created indexes and aliases diff --git a/.github/workflows/sync-search-pr.yml b/.github/workflows/sync-search-pr.yml index 9e55f650e1..a2910c74e6 100644 --- a/.github/workflows/sync-search-pr.yml +++ b/.github/workflows/sync-search-pr.yml @@ -8,7 +8,7 @@ name: Sync search - PR on: pull_request: paths: - - 'script/search/**' + - 'src/search/**' - 'package*.json' # Ultimately, for debugging this workflow itself - .github/workflows/sync-search-pr.yml @@ -107,7 +107,7 @@ jobs: - name: Index into Elasticsearch run: | - ./script/search/index-elasticsearch.js /tmp/records \ + ./src/search/scripts/index-elasticsearch.js /tmp/records \ --language en \ --version dotcom diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04348af4ae..abec7906c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,6 +53,7 @@ jobs: { name: 'routing', path: 'tests/routing', }, { name: 'rendering', path: 'tests/rendering', }, { name: 'rendering-fixtures', path: 'tests/rendering-fixtures', }, + { name: 'search', path: 'src/search/tests', }, context.payload.repository.full_name === 'github/docs-internal' && { name: 'translations', path: 'tests/translations', }, { name: 'unit', path: 'tests/unit', }, @@ -76,7 +77,7 @@ jobs: uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - uses: ./.github/actions/setup-elasticsearch - if: ${{ matrix.name == 'content' || matrix.name == 'translations' }} + if: ${{ matrix.name == 'search' || matrix.name == 'translations' }} - uses: ./.github/actions/node-npm-setup @@ -165,7 +166,7 @@ jobs: - name: Index fixtures into the local Elasticsearch # For the sake of saving time, only run this step if the group # is one that will run tests against an Elasticsearch on localhost. - if: ${{ matrix.name == 'content' || matrix.name == 'translations' }} + if: ${{ matrix.name == 'search' || matrix.name == 'translations' }} run: npm run index-test-fixtures - name: Run tests diff --git a/components/page-header/Breadcrumbs.tsx b/components/page-header/Breadcrumbs.tsx index 3f0b6c1f12..14ad14e10c 100644 --- a/components/page-header/Breadcrumbs.tsx +++ b/components/page-header/Breadcrumbs.tsx @@ -22,7 +22,7 @@ export const Breadcrumbs = ({ inHeader }: Props) => { NOTE: The breadcrumbs class and the nav tag are used by the Lunr search scripts. The a tag generated by the Link is also used. If these change, please also change - updating script/search/parse-page-sections-into-records.js. + updating src/search/scripts/parse-page-sections-into-records.js. */