From dd5cf8e5368d18a50bc39f3834f08958ede8702a Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Sat, 1 Feb 2025 01:15:26 +0000 Subject: [PATCH] Sync CI with official repository --- .ci/pull-request-check/selenium-test.js | 8 ++++---- .github/workflows/ci.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/pull-request-check/selenium-test.js b/.ci/pull-request-check/selenium-test.js index e9a517b..5bbcdbd 100755 --- a/.ci/pull-request-check/selenium-test.js +++ b/.ci/pull-request-check/selenium-test.js @@ -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))); } @@ -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; } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19efca7..62e45e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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