File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ import type { ExecOptions } from '@actions/exec/lib/interfaces';
15
15
16
16
// REFER: https://docs.codeclimate.com/docs/configuring-test-coverage#locations-of-pre-built-binaries
17
17
/** Canonical download URL for the official CodeClimate reporter. */
18
- export const DOWNLOAD_URL = `https://codeclimate.com/downloads/test-reporter/test-reporter-latest-${ platform ( ) } - ${
19
- arch ( ) === 'arm64 ' ? 'arm64 ' : 'amd64'
20
- } `;
18
+ export const DOWNLOAD_URL = `https://codeclimate.com/downloads/test-reporter/test-reporter-latest-${
19
+ platform ( ) === 'win32 ' ? 'windows ' : platform ( )
20
+ } - ${ arch ( ) === 'arm64' ? 'arm64' : 'amd64' } `;
21
21
/** Local file name of the CodeClimate reporter. */
22
22
export const EXECUTABLE = './cc-reporter' ;
23
23
export const CODECLIMATE_GPG_PUBLIC_KEY_ID =
@@ -179,13 +179,6 @@ export function run(
179
179
verifyDownload : string = DEFAULT_VERIFY_DOWNLOAD
180
180
) : Promise < void > {
181
181
return new Promise ( async ( resolve , reject ) => {
182
- if ( platform ( ) === 'win32' ) {
183
- const err = new Error ( 'CC Reporter is not supported on Windows!' ) ;
184
- error ( err . message ) ;
185
- setFailed ( '🚨 CodeClimate Reporter will not run on Windows!' ) ;
186
- return reject ( err ) ;
187
- }
188
-
189
182
let lastExitCode = 1 ;
190
183
if ( workingDirectory ) {
191
184
debug ( `Changing working directory to ${ workingDirectory } ` ) ;
You can’t perform that action at this time.
0 commit comments