1
1
/******/ ( ( ) => { // webpackBootstrap
2
2
/******/ var __webpack_modules__ = ( {
3
3
4
- /***/ 604 :
4
+ /***/ 351 :
5
5
/***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
6
6
7
7
"use strict" ;
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
29
29
exports . issue = exports . issueCommand = void 0 ;
30
30
const os = __importStar ( __nccwpck_require__ ( 37 ) ) ;
31
- const utils_1 = __nccwpck_require__ ( 245 ) ;
31
+ const utils_1 = __nccwpck_require__ ( 278 ) ;
32
32
/**
33
33
* Commands
34
34
*
@@ -100,7 +100,7 @@ function escapeProperty(s) {
100
100
101
101
/***/ } ) ,
102
102
103
- /***/ 127 :
103
+ /***/ 186 :
104
104
/***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
105
105
106
106
"use strict" ;
@@ -135,12 +135,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
135
135
} ;
136
136
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
137
137
exports . getIDToken = exports . getState = exports . saveState = exports . group = exports . endGroup = exports . startGroup = exports . info = exports . notice = exports . warning = exports . error = exports . debug = exports . isDebug = exports . setFailed = exports . setCommandEcho = exports . setOutput = exports . getBooleanInput = exports . getMultilineInput = exports . getInput = exports . addPath = exports . setSecret = exports . exportVariable = exports . ExitCode = void 0 ;
138
- const command_1 = __nccwpck_require__ ( 604 ) ;
139
- const file_command_1 = __nccwpck_require__ ( 352 ) ;
140
- const utils_1 = __nccwpck_require__ ( 245 ) ;
138
+ const command_1 = __nccwpck_require__ ( 351 ) ;
139
+ const file_command_1 = __nccwpck_require__ ( 717 ) ;
140
+ const utils_1 = __nccwpck_require__ ( 278 ) ;
141
141
const os = __importStar ( __nccwpck_require__ ( 37 ) ) ;
142
142
const path = __importStar ( __nccwpck_require__ ( 17 ) ) ;
143
- const oidc_utils_1 = __nccwpck_require__ ( 457 ) ;
143
+ const oidc_utils_1 = __nccwpck_require__ ( 41 ) ;
144
144
/**
145
145
* The code to exit an action
146
146
*/
@@ -419,7 +419,7 @@ exports.getIDToken = getIDToken;
419
419
420
420
/***/ } ) ,
421
421
422
- /***/ 352 :
422
+ /***/ 717 :
423
423
/***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
424
424
425
425
"use strict" ;
@@ -450,7 +450,7 @@ exports.issueCommand = void 0;
450
450
/* eslint-disable @typescript-eslint/no-explicit-any */
451
451
const fs = __importStar ( __nccwpck_require__ ( 147 ) ) ;
452
452
const os = __importStar ( __nccwpck_require__ ( 37 ) ) ;
453
- const utils_1 = __nccwpck_require__ ( 245 ) ;
453
+ const utils_1 = __nccwpck_require__ ( 278 ) ;
454
454
function issueCommand ( command , message ) {
455
455
const filePath = process . env [ `GITHUB_${ command } ` ] ;
456
456
if ( ! filePath ) {
@@ -468,7 +468,7 @@ exports.issueCommand = issueCommand;
468
468
469
469
/***/ } ) ,
470
470
471
- /***/ 457 :
471
+ /***/ 41 :
472
472
/***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
473
473
474
474
"use strict" ;
@@ -484,9 +484,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
484
484
} ;
485
485
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
486
486
exports . OidcClient = void 0 ;
487
- const http_client_1 = __nccwpck_require__ ( 840 ) ;
488
- const auth_1 = __nccwpck_require__ ( 421 ) ;
489
- const core_1 = __nccwpck_require__ ( 127 ) ;
487
+ const http_client_1 = __nccwpck_require__ ( 925 ) ;
488
+ const auth_1 = __nccwpck_require__ ( 702 ) ;
489
+ const core_1 = __nccwpck_require__ ( 186 ) ;
490
490
class OidcClient {
491
491
static createHttpClient ( allowRetry = true , maxRetry = 10 ) {
492
492
const requestOptions = {
@@ -552,7 +552,7 @@ exports.OidcClient = OidcClient;
552
552
553
553
/***/ } ) ,
554
554
555
- /***/ 245 :
555
+ /***/ 278 :
556
556
/***/ ( ( __unused_webpack_module , exports ) => {
557
557
558
558
"use strict" ;
@@ -599,7 +599,7 @@ exports.toCommandProperties = toCommandProperties;
599
599
600
600
/***/ } ) ,
601
601
602
- /***/ 421 :
602
+ /***/ 702 :
603
603
/***/ ( ( __unused_webpack_module , exports ) => {
604
604
605
605
"use strict" ;
@@ -665,15 +665,15 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand
665
665
666
666
/***/ } ) ,
667
667
668
- /***/ 840 :
668
+ /***/ 925 :
669
669
/***/ ( ( __unused_webpack_module , exports , __nccwpck_require__ ) => {
670
670
671
671
"use strict" ;
672
672
673
673
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
674
674
const http = __nccwpck_require__ ( 685 ) ;
675
675
const https = __nccwpck_require__ ( 687 ) ;
676
- const pm = __nccwpck_require__ ( 45 ) ;
676
+ const pm = __nccwpck_require__ ( 443 ) ;
677
677
let tunnel ;
678
678
var HttpCodes ;
679
679
( function ( HttpCodes ) {
@@ -1092,7 +1092,7 @@ class HttpClient {
1092
1092
if ( useProxy ) {
1093
1093
// If using proxy, need tunnel
1094
1094
if ( ! tunnel ) {
1095
- tunnel = __nccwpck_require__ ( 265 ) ;
1095
+ tunnel = __nccwpck_require__ ( 294 ) ;
1096
1096
}
1097
1097
const agentOptions = {
1098
1098
maxSockets : maxSockets ,
@@ -1210,7 +1210,7 @@ exports.HttpClient = HttpClient;
1210
1210
1211
1211
/***/ } ) ,
1212
1212
1213
- /***/ 45 :
1213
+ /***/ 443 :
1214
1214
/***/ ( ( __unused_webpack_module , exports ) => {
1215
1215
1216
1216
"use strict" ;
@@ -1275,7 +1275,7 @@ exports.checkBypass = checkBypass;
1275
1275
1276
1276
/***/ } ) ,
1277
1277
1278
- /***/ 631 :
1278
+ /***/ 752 :
1279
1279
/***/ ( ( module , __unused_webpack_exports , __nccwpck_require__ ) => {
1280
1280
1281
1281
/*
@@ -1454,15 +1454,15 @@ module.exports = LineByLineReader;
1454
1454
1455
1455
/***/ } ) ,
1456
1456
1457
- /***/ 265 :
1457
+ /***/ 294 :
1458
1458
/***/ ( ( module , __unused_webpack_exports , __nccwpck_require__ ) => {
1459
1459
1460
- module . exports = __nccwpck_require__ ( 686 ) ;
1460
+ module . exports = __nccwpck_require__ ( 219 ) ;
1461
1461
1462
1462
1463
1463
/***/ } ) ,
1464
1464
1465
- /***/ 686 :
1465
+ /***/ 219 :
1466
1466
/***/ ( ( __unused_webpack_module , exports , __nccwpck_require__ ) => {
1467
1467
1468
1468
"use strict" ;
@@ -1871,8 +1871,8 @@ module.exports = require("util");
1871
1871
var __webpack_exports__ = { } ;
1872
1872
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1873
1873
( ( ) => {
1874
- const core = __nccwpck_require__ ( 127 ) ;
1875
- const lineReader = __nccwpck_require__ ( 631 ) ;
1874
+ const core = __nccwpck_require__ ( 186 ) ;
1875
+ const lineReader = __nccwpck_require__ ( 752 ) ;
1876
1876
const fs = __nccwpck_require__ ( 147 ) ;
1877
1877
1878
1878
@@ -1881,6 +1881,7 @@ try {
1881
1881
1882
1882
const testResultsPath = core . getInput ( 'test-results' ) ;
1883
1883
const customPackageName = core . getInput ( 'package-name' ) ;
1884
+ const workingDirectory = core . getInput ( 'working-directory' ) ;
1884
1885
1885
1886
if ( ! fs . existsSync ( testResultsPath ) ) {
1886
1887
core . warning (
@@ -1891,7 +1892,7 @@ try {
1891
1892
1892
1893
let obj = { } ;
1893
1894
let lr = new lineReader ( testResultsPath ) ;
1894
- lr . on ( 'line' , function ( line ) {
1895
+ lr . on ( 'line' , function ( line ) {
1895
1896
const currentLine = JSON . parse ( line ) ;
1896
1897
const testName = currentLine . Test ;
1897
1898
if ( typeof testName === "undefined" ) {
@@ -1915,14 +1916,17 @@ try {
1915
1916
packageName = currentLine . Package . replace ( customPackageName + "/" , "" )
1916
1917
}
1917
1918
}
1919
+ if ( workingDirectory !== "" ) {
1920
+ packageName = workingDirectory + "/" + packageName
1921
+ }
1918
1922
let newEntry = packageName + "/" + testName ;
1919
1923
if ( ! obj . hasOwnProperty ( newEntry ) ) {
1920
1924
obj [ newEntry ] = output ;
1921
1925
} else {
1922
1926
obj [ newEntry ] += output ;
1923
1927
}
1924
1928
} ) ;
1925
- lr . on ( 'end' , function ( ) {
1929
+ lr . on ( 'end' , function ( ) {
1926
1930
for ( const [ key , value ] of Object . entries ( obj ) ) {
1927
1931
if ( value . includes ( "FAIL" ) && value . includes ( "_test.go" ) ) {
1928
1932
var result ;
0 commit comments