File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
src/semantic-release/ci-providers/github-workflows Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import lift from './lifter';
13
13
suite ( 'github-workflows lifter for semantic-release' , ( ) => {
14
14
let sandbox ;
15
15
const projectRoot = any . string ( ) ;
16
+ const nodeVersion = any . string ( ) ;
16
17
const workflowsDirectory = `${ projectRoot } /.github/workflows` ;
17
18
const verificationWorkflowContents = any . string ( ) ;
18
19
const parsedVerificationWorkflowContents = any . simpleObject ( ) ;
@@ -56,9 +57,9 @@ suite('github-workflows lifter for semantic-release', () => {
56
57
jobs : existingJobs
57
58
} ) ;
58
59
59
- await lift ( { projectRoot} ) ;
60
+ await lift ( { projectRoot, nodeVersion } ) ;
60
61
61
- assert . calledWith ( releaseWorkflowLifter . default , { projectRoot} ) ;
62
+ assert . calledWith ( releaseWorkflowLifter . default , { projectRoot, nodeVersion } ) ;
62
63
assert . calledWith (
63
64
core . writeConfigFile ,
64
65
{
@@ -86,9 +87,9 @@ suite('github-workflows lifter for semantic-release', () => {
86
87
jobs : existingJobs
87
88
} ) ;
88
89
89
- await lift ( { projectRoot} ) ;
90
+ await lift ( { projectRoot, nodeVersion } ) ;
90
91
91
- assert . calledWith ( releaseWorkflowLifter . default , { projectRoot} ) ;
92
+ assert . calledWith ( releaseWorkflowLifter . default , { projectRoot, nodeVersion } ) ;
92
93
assert . calledWith (
93
94
core . writeConfigFile ,
94
95
{
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ function removeCycjimmyActionFrom(otherJobs) {
15
15
] ) ) ;
16
16
}
17
17
18
- export default async function ( { projectRoot} ) {
18
+ export default async function ( { projectRoot, nodeVersion } ) {
19
19
const workflowsDirectory = `${ projectRoot } /.github/workflows` ;
20
20
21
- await liftReleaseWorkflow ( { projectRoot} ) ;
21
+ await liftReleaseWorkflow ( { projectRoot, nodeVersion } ) ;
22
22
23
23
const parsedVerificationWorkflowDetails = load ( await fs . readFile ( `${ workflowsDirectory } /node-ci.yml` , 'utf-8' ) ) ;
24
24
You can’t perform that action at this time.
0 commit comments