Skip to content

Commit

Permalink
Merge pull request #1061 from manandre/nuke-working-directory
Browse files Browse the repository at this point in the history
Use new WorkingDirectory property for RunStep
  • Loading branch information
JoeRobich authored Oct 19, 2023
2 parents b330ee2 + cd16591 commit 4ac40eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ public sealed partial class Solution : NukeBuild,

AbsolutePath ICanUpdateReadme.ReadmeFilePath => RootDirectory / "README.md";

private const string VscodeTestExtensionProjectDirectory = "vscode-testextension";
internal const string VscodeTestExtensionProjectDirectory = "vscode-testextension";
}
12 changes: 5 additions & 7 deletions .build/Solution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,15 @@ public static RocketSurgeonsGithubActionsJob AddVscodeExtensionTests(this Rocket
{
return job
.AddStep(new RunStep("Npm install") {
Run = string.Join(Environment.NewLine, [
"cd vscode-testextension",
"npm ci",
"cd .."
])
Run = "npm ci",
WorkingDirectory = Solution.VscodeTestExtensionProjectDirectory
})
.AddStep(new UsingStep("Vscode extension tests") {
Uses = "coactions/setup-xvfb@v1",
With = {
["run"] = "npm run test",
["working-directory"] = "vscode-testextension"
}});
["working-directory"] = Solution.VscodeTestExtensionProjectDirectory
}
});
}
}
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ jobs:
run: |
dotnet nuke Pack --skip
- name: Npm install
working-directory: vscode-testextension
run: |
cd vscode-testextension
npm ci
cd ..
- name: 🚦 Vscode extension tests
uses: coactions/setup-xvfb@v1
with:
Expand Down

0 comments on commit 4ac40eb

Please sign in to comment.