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 Feb 1, 2025
1 parent 8ca579b commit dd5cf8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .ci/pull-request-check/selenium-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function report(results) {
let padding = 2;
let output = translatorResults.message.split("\n");
for (let line of output) {
if (line.match(/^TranslatorTester: Running [^T]*Test [0-9]*$/) ||
if (line.match(/^TranslatorTester: Running .+ Test [0-9]*$/) ||
line.match(/^TranslatorTester: Running [0-9]* tests for .*$/)) {
console.log(" ".repeat(padding-1) + chalk.bgCyan(chalk.black(line)));
}
Expand All @@ -72,14 +72,14 @@ function report(results) {
else if (line.match(/^\+/)) {
console.log(chalk.green("+" + " ".repeat(padding) + line.substr(1)));
}
else if (line.match(/^TranslatorTester: [^T]*Test [0-9]*: succeeded/)) {
else if (line.match(/^TranslatorTester: .+ Test [0-9]*: succeeded/)) {
console.log(" ".repeat(padding) + chalk.bgGreen(line));
}
else if (line.match(/^TranslatorTester: [^T]*Test [0-9]*: unknown/)) {
else if (line.match(/^TranslatorTester: .+ Test [0-9]*: unknown/)) {
console.log(" ".repeat(padding) + chalk.bgYellow(chalk.black(line)));
allPassed = false;
}
else if (line.match(/^TranslatorTester: [^T]*Test [0-9]*: failed/)) {
else if (line.match(/^TranslatorTester: .+ Test [0-9]*: failed/)) {
console.log(" ".repeat(padding) + chalk.bgRed(line));
allPassed = false;
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Test pull request
if: github.event_name == 'pull_request'
env:
BROWSER_EXECUTABLE: /home/runner/work/translators/translators/.ci/pull-request-check/xvfb-run-chrome
BROWSER_EXECUTABLE: /home/runner/work/translators_CN/translators_CN/.ci/pull-request-check/xvfb-run-chrome
run: ./check-pull-request.sh
working-directory: .ci/pull-request-check

Expand Down

0 comments on commit dd5cf8e

Please sign in to comment.