Skip to content

Commit

Permalink
Sync CI with official repository
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 1, 2024
1 parent 7b41be7 commit fea15f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module.exports = {
});
}
else if (testCase.type === 'search') {
const expected = ['DOI', 'ISBN', 'PMID', 'identifiers', 'contextObject', 'adsBibcode', 'ericNumber'];
const expected = ['DOI', 'ISBN', 'PMID', 'identifiers', 'contextObject', 'adsBibcode', 'ericNumber', 'openAlex'];
const keys = Array.isArray(testCase.input) ? testCase.input.flatMap(Object.keys) : Object.keys(testCase.input);

if (!keys.every(key => expected.includes(key))) {
Expand Down
2 changes: 2 additions & 0 deletions .ci/pull-request-check/check-pull-request.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

echo "::group::Setup"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR="$( dirname "$DIR" )"

Expand Down Expand Up @@ -33,6 +34,7 @@ export CHROME_EXTENSION_KEY="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDllBS5q+Z9T9t
cd ..

npm explore chromedriver -- npm run install --detect_chromedriver_version
echo "::endgroup::"

get_translators_to_check
./selenium-test.js "$TRANSLATORS_TO_CHECK"
Expand Down

0 comments on commit fea15f5

Please sign in to comment.