From 673d9d628755ecd31d47bef40b7ed4e864701f44 Mon Sep 17 00:00:00 2001 From: Brendan Bell Date: Mon, 12 Feb 2024 13:32:28 +0000 Subject: [PATCH] Install unzip and gh command functionality. (#222) * 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 --- .github/workflows/e2e_test.yaml | 4 ++++ scripts/build-image.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e_test.yaml b/.github/workflows/e2e_test.yaml index 5c31c2a78..89bf7f8bf 100644 --- a/.github/workflows/e2e_test.yaml +++ b/.github/workflows/e2e_test.yaml @@ -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 diff --git a/scripts/build-image.sh b/scripts/build-image.sh index 5fb616feb..cfc667d3d 100644 --- a/scripts/build-image.sh +++ b/scripts/build-image.sh @@ -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