File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
__tests__/stubs/github/internal Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ describe('github/internal/utils', () => {
80
80
81
81
describe ( 'getApiBaseUrl' , ( ) => {
82
82
it ( 'Returns the base URL' , ( ) => {
83
+ delete process . env . GITHUB_API_URL
84
+
83
85
const result = utils . getApiBaseUrl ( )
84
86
85
87
expect ( result ) . toBe ( 'https://api.github.com' )
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ export const CoreMeta: CoreMetadata = {
54
54
secrets : [ ] ,
55
55
state : { } ,
56
56
stepDebug : process . env . ACTIONS_STEP_DEBUG === 'true' ,
57
- stepSummaryPath : process . env . GITHUB_STEP_SUMMARY ?? '' ,
57
+ stepSummaryPath :
58
+ /* istanbul ignore next*/ process . env . GITHUB_STEP_SUMMARY ?? '' ,
58
59
colors : {
59
60
cyan : ( msg : string ) => console . log ( msg ) ,
60
61
blue : ( msg : string ) => console . log ( msg ) ,
Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ export class Context {
53
53
this . runAttempt = parseInt ( process . env . GITHUB_RUN_ATTEMPT as string , 10 )
54
54
this . runNumber = parseInt ( process . env . GITHUB_RUN_NUMBER as string , 10 )
55
55
this . runId = parseInt ( process . env . GITHUB_RUN_ID as string , 10 )
56
+ /* istanbul ignore next */
56
57
this . apiUrl = process . env . GITHUB_API_URL ?? 'https://api.github.com'
58
+ /* istanbul ignore next */
57
59
this . serverUrl = process . env . GITHUB_SERVER_URL ?? 'https://github.com'
60
+ /* istanbul ignore next */
58
61
this . graphqlUrl =
59
62
process . env . GITHUB_GRAPHQL_URL ?? 'https://api.github.com/graphql'
60
63
}
You can’t perform that action at this time.
0 commit comments