Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions images/ubuntu/scripts/build/install-copilot-cli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -e
################################################################################
## File: install-copilot-cli.sh
## Desc: Install GitHub Copilot CLI via npm
################################################################################

# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh

echo "Installing GitHub Copilot CLI..."

npm install -g @github/copilot --ignore-scripts

invoke_tests "CLI.Tools" "Copilot CLI"
6 changes: 6 additions & 0 deletions images/ubuntu/scripts/tests/CLI.Tools.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ Describe "GitHub CLI" {
}
}

Describe "Copilot CLI" -Skip:(Test-IsUbuntu22) {
It "copilot cli" {
"copilot --version" | Should -ReturnZeroExitCode
}
}

Describe "Google Cloud CLI" {
It "Google Cloud CLI" {
"gcloud --version" | Should -ReturnZeroExitCode
Expand Down
1 change: 1 addition & 0 deletions images/ubuntu/templates/build.ubuntu-24_04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ provisioner "shell" {
"${path.root}/../scripts/build/install-cmake.sh",
"${path.root}/../scripts/build/install-codeql-bundle.sh",
"${path.root}/../scripts/build/install-awf.sh",
"${path.root}/../scripts/build/install-copilot-cli.sh",
"${path.root}/../scripts/build/install-container-tools.sh",
"${path.root}/../scripts/build/install-dotnetcore-sdk.sh",
Comment on lines 111 to 116
"${path.root}/../scripts/build/install-microsoft-edge.sh",
Expand Down
1 change: 1 addition & 0 deletions images/ubuntu/templates/build.ubuntu-26_04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ provisioner "shell" {
"${path.root}/../scripts/build/install-cmake.sh",
"${path.root}/../scripts/build/install-codeql-bundle.sh",
"${path.root}/../scripts/build/install-awf.sh",
"${path.root}/../scripts/build/install-copilot-cli.sh",
"${path.root}/../scripts/build/install-container-tools.sh",
"${path.root}/../scripts/build/install-dotnetcore-sdk.sh",
"${path.root}/../scripts/build/install-microsoft-edge.sh",
Expand Down
Loading