* indexing records into Elasticsearch * @elastic/elasticsearch@8.2.0 * mv * fix the code * pipe * lfs * use sha * change how index names work * search api with Elasticsearch * works * refactor client * better snowballing * remove dbg * wip * highlights and fuzzy search * improvements and upgrade * also upgrade * wip * index more explicitly * better validation * change max size * popularity by ordinal ranking instead * playing * fix package-lock * rearranging * catchMiddlewareError * fix indexing * match_phrase_prefix on wrapped search * refactorings * escape html in content * wip * search by URL * update lock file * v1 api * inroads on jest testing the search * valid yaml hopefully * index fixtures into local elasticsearch * specific versions to index only * small fixes * feedbacked * fix tests * use the npm script
13 lines
511 B
JavaScript
13 lines
511 B
JavaScript
const runningActionsOnInternalRepo =
|
|
process.env.GITHUB_ACTIONS === 'true' && process.env.GITHUB_REPOSITORY === 'github/docs-internal'
|
|
|
|
export const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
|
|
export const describeViaActionsOnly = runningActionsOnInternalRepo ? describe : describe.skip
|
|
export const describeIfElasticsearchURL = process.env.ELASTICSEARCH_URL ? describe : describe.skip
|
|
|
|
export default {
|
|
testViaActionsOnly,
|
|
describeViaActionsOnly,
|
|
describeIfElasticsearchURL,
|
|
}
|