@@ -12,6 +12,7 @@ import lift from './lifter';
12
12
suite ( 'release workflow lifter' , ( ) => {
13
13
let sandbox ;
14
14
const projectRoot = any . string ( ) ;
15
+ const nodeVersion = any . string ( ) ;
15
16
const workflowsDirectory = `${ projectRoot } /.github/workflows` ;
16
17
const pathToReleaseWorkflowFile = `${ workflowsDirectory } /release.yml` ;
17
18
const existingWorkflowContents = any . string ( ) ;
@@ -30,19 +31,19 @@ suite('release workflow lifter', () => {
30
31
test ( 'that the scaffolder is called when a release workflow does not exist' , async ( ) => {
31
32
core . fileExists . resolves ( false ) ;
32
33
33
- await lift ( { projectRoot} ) ;
34
+ await lift ( { projectRoot, nodeVersion } ) ;
34
35
35
- assert . calledWith ( scaffolder . default , { projectRoot} ) ;
36
+ assert . calledWith ( scaffolder . default , { projectRoot, nodeVersion } ) ;
36
37
} ) ;
37
38
38
39
test ( 'that the scaffolder is re-run when the release workflow is dispatchable' , async ( ) => {
39
40
core . fileExists . withArgs ( pathToReleaseWorkflowFile ) . resolves ( true ) ;
40
41
fs . readFile . withArgs ( pathToReleaseWorkflowFile , 'utf-8' ) . resolves ( existingWorkflowContents ) ;
41
42
jsYaml . load . withArgs ( existingWorkflowContents ) . returns ( { on : { workflow_dispatch : { } } } ) ;
42
43
43
- await lift ( { projectRoot} ) ;
44
+ await lift ( { projectRoot, nodeVersion } ) ;
44
45
45
- assert . calledWith ( scaffolder . default , { projectRoot} ) ;
46
+ assert . calledWith ( scaffolder . default , { projectRoot, nodeVersion } ) ;
46
47
} ) ;
47
48
48
49
test ( 'that the scaffolder is not called when a modern release workflow already exists' , async ( ) => {
0 commit comments