File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -83,5 +83,5 @@ public sealed partial class Solution : NukeBuild,
83
83
84
84
AbsolutePath ICanUpdateReadme . ReadmeFilePath => RootDirectory / "README.md" ;
85
85
86
- private const string VscodeTestExtensionProjectDirectory = "vscode-testextension" ;
86
+ internal const string VscodeTestExtensionProjectDirectory = "vscode-testextension" ;
87
87
}
Original file line number Diff line number Diff line change @@ -117,17 +117,15 @@ public static RocketSurgeonsGithubActionsJob AddVscodeExtensionTests(this Rocket
117
117
{
118
118
return job
119
119
. AddStep ( new RunStep ( "Npm install" ) {
120
- Run = string . Join ( Environment . NewLine , [
121
- "cd vscode-testextension" ,
122
- "npm ci" ,
123
- "cd .."
124
- ] )
120
+ Run = "npm ci" ,
121
+ WorkingDirectory = Solution . VscodeTestExtensionProjectDirectory
125
122
} )
126
123
. AddStep ( new UsingStep ( "Vscode extension tests" ) {
127
124
Uses = "coactions/setup-xvfb@v1" ,
128
125
With = {
129
126
[ "run" ] = "npm run test" ,
130
- [ "working-directory" ] = "vscode-testextension"
131
- } } ) ;
127
+ [ "working-directory" ] = Solution . VscodeTestExtensionProjectDirectory
128
+ }
129
+ } ) ;
132
130
}
133
131
}
Original file line number Diff line number Diff line change @@ -118,10 +118,9 @@ jobs:
118
118
run : |
119
119
dotnet nuke Pack --skip
120
120
- name : Npm install
121
+ working-directory : vscode-testextension
121
122
run : |
122
- cd vscode-testextension
123
123
npm ci
124
- cd ..
125
124
- name : 🚦 Vscode extension tests
126
125
uses : coactions/setup-xvfb@v1
127
126
with :
You can’t perform that action at this time.
0 commit comments