Skip to content

Commit

Permalink
fix(ci): issue with pipeline coverage monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Jan 22, 2024
1 parent 7815a6e commit a42f189
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-test-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: slavcodev/[email protected]
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}}

Expand Down
6 changes: 3 additions & 3 deletions bin/translations_download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit a42f189

Please sign in to comment.