From a42f189e713d159ad6437b7aef5538a05e04d94a Mon Sep 17 00:00:00 2001 From: Timothy Le Bon Date: Mon, 22 Jan 2024 15:50:53 +0100 Subject: [PATCH] fix(ci): issue with pipeline coverage monitor --- .github/workflows/deploy-to-test-env.yml | 2 +- .github/workflows/test_build_deploy.yml | 2 +- bin/translations_download.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-to-test-env.yml b/.github/workflows/deploy-to-test-env.yml index 5ac22d747e..2b862d54d0 100644 --- a/.github/workflows/deploy-to-test-env.yml +++ b/.github/workflows/deploy-to-test-env.yml @@ -32,7 +32,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x cache: 'yarn' - name: Install JS dependencies run: yarn --immutable diff --git a/.github/workflows/test_build_deploy.yml b/.github/workflows/test_build_deploy.yml index 3b56900456..9376b0d353 100644 --- a/.github/workflows/test_build_deploy.yml +++ b/.github/workflows/test_build_deploy.yml @@ -81,7 +81,7 @@ jobs: uses: slavcodev/coverage-monitor-action@1.8.0 with: github_token: ${{github.token}} - clover_file: 'coverage/clover.xml' + coverage_path: 'coverage/clover.xml' threshold_alert: ${{env.TEST_COVERAGE_FAIL_THRESHOLD}} threshold_warning: ${{env.TEST_COVERAGE_WARNING_THRESHOLD}} diff --git a/bin/translations_download.js b/bin/translations_download.js index 15d8c201a0..fa3aa0ac6e 100644 --- a/bin/translations_download.js +++ b/bin/translations_download.js @@ -39,7 +39,7 @@ const getProjectAPIKey = () => { const projectAPIKey = getProjectAPIKey(); -const CROWDIN_API = 'https://api.crowdin.com/api/project/wire-account'; +const CROWDIN_API = 'https://api.crowdin.com/api/v2/projects/342361'; const CROWDIN_URL = { DOWNLOAD: `${CROWDIN_API}/download/all.zip?key=${projectAPIKey}`, @@ -53,7 +53,7 @@ function fetchUpdates() { https.get(CROWDIN_URL.EXPORT, response => { if (response.statusCode < 200 || response.statusCode > 299) { // eslint-disable-next-line prefer-promise-reject-errors - reject(`Failed to export, status code: ${response.statusCode}`); + reject(`Failed to export, status code: ${response.statusCode} ${response.statusMessage}`); } response.on('data', resolve); response.on('error', reject); @@ -68,7 +68,7 @@ function download() { https.get(CROWDIN_URL.DOWNLOAD, response => { if (response.statusCode < 200 || response.statusCode > 299) { // eslint-disable-next-line prefer-promise-reject-errors - reject(`Failed to download, status code: ${response.statusCode}`); + reject(`Failed to download, status code: ${response.statusCode} ${response.statusMessage}`); } response.on('error', reject);