Skip to content

Commit

Permalink
Install unzip and gh command functionality. (#222)
Browse files Browse the repository at this point in the history
* feat(ISD-1567): added gh and unzip, with relevant e2e tests

* feat(ISD-1567): updated e2e test for checking unzip version. uses -v flag instead of --version, which returns error code 10
  • Loading branch information
codethulu committed Feb 12, 2024
1 parent c9f6bfa commit 673d9d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/e2e_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ jobs:
run: yq --version
- name: install check-jsonschema
run: python3 -m pip install check-jsonschema
- name: unzip version
run: unzip -v
- name: gh version
run: gh --version
# `check-jsonschema` is installed using pip. The directory `~/.local/bin` needs to be added to PATH.
- name: test check-jsonschema
run: check-jsonschema --version
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ retry '/snap/bin/lxc exec builder -- /usr/bin/nslookup github.com' 'Wait for net

/snap/bin/lxc exec builder -- /usr/bin/apt-get update
/snap/bin/lxc exec builder --env DEBIAN_FRONTEND=noninteractive -- /usr/bin/apt-get upgrade -yq
/snap/bin/lxc exec builder --env DEBIAN_FRONTEND=noninteractive -- /usr/bin/apt-get install docker.io npm python3-pip shellcheck jq wget -yq
/snap/bin/lxc exec builder --env DEBIAN_FRONTEND=noninteractive -- /usr/bin/apt-get install docker.io npm python3-pip shellcheck jq wget unzip gh -yq
if [[ -n "$HTTP_PROXY" ]]; then
/snap/bin/lxc exec builder -- /usr/bin/npm config set proxy "$HTTP_PROXY"
fi
Expand Down

0 comments on commit 673d9d6

Please sign in to comment.