File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ cases(
21
21
} ,
22
22
} ) => {
23
23
// beforeEach
24
-
25
24
const { sync : crossSpawnSyncMock } = require ( 'cross-spawn' )
26
25
const utils = require ( '../../utils' )
27
26
utils . resolveBin = ( modName , { executable = modName } = { } ) => executable
27
+
28
28
const originalEnvs = Object . keys ( env ) . map ( envKey => {
29
29
const orig = process . env [ envKey ]
30
30
process . env [ envKey ] = env [ envKey ]
82
82
} ,
83
83
'calls concurrently with both scripts when on github actions' : {
84
84
env : {
85
- GITHUB_REF : '/refs/heads/main' ,
85
+ CF_BRANCH : '' ,
86
+ GITHUB_REF : 'refs/heads/main' ,
86
87
TRAVIS_PULL_REQUEST : 'false' ,
87
88
} ,
88
89
} ,
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ const releaseBranches = [
23
23
'beta' ,
24
24
'alpha' ,
25
25
]
26
- const branch = CF_BRANCH || TRAVIS_BRANCH || GITHUB_REF . replace ( / \/ r e f s \/ .* \/ / )
26
+ const branch =
27
+ CF_BRANCH || TRAVIS_BRANCH || GITHUB_REF . replace ( / r e f s \/ .* \/ / , '' )
27
28
const isCI = parseEnv ( 'TRAVIS' , false ) || parseEnv ( 'CI' , false )
28
29
29
30
const codecovCommand = `echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'`
You can’t perform that action at this time.
0 commit comments