Skip to content
Open
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,14 @@ jobs:

- name: Run Bicep E2E Tests (linux-musl-x64)
if: matrix.runtime.rid == 'linux-musl-x64'
# DO NOT change this image - we use the azure-cli image intentionally to ensure
# that Bicep CLI works correctly when installed via Azure CLI. The azure-cli image
# is based on Alpine Linux (musl libc) and already includes the ICU libraries
# required by the .NET Bicep CLI binary.
uses: docker://mcr.microsoft.com/azure-cli:2.63.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not change this. We explicitly use the azure-cli image to ensure Bicep CLI works when installed via Azure CLI.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! We should probably also add a comment not to change it (may help the next agent).

with:
entrypoint: sh
args: -c "set -eu && apk add --no-cache nodejs npm && node -v && npm -v && npm ci --prefix ./src/Bicep.Cli.E2eTests && npm test --prefix ./src/Bicep.Cli.E2eTests"
args: -c "set -eu && apk add --no-cache --upgrade --repository https://dl-cdn.alpinelinux.org/alpine/v3.21/main nodejs npm sqlite-libs && node -v && npm -v && npm ci --prefix ./src/Bicep.Cli.E2eTests && npm test --prefix ./src/Bicep.Cli.E2eTests"
env:
BICEP_CLI_DOTNET_RID: ${{ matrix.runtime.rid }}
BICEP_CLI_EXECUTABLE: ../../../Bicep.Cli.E2eTests/src/temp/bicep-cli/bicep
Expand Down Expand Up @@ -863,7 +867,7 @@ jobs:
- name: Setup Node.js
run: |
set -eu
apk add --no-cache nodejs npm
apk add --no-cache --upgrade --repository https://dl-cdn.alpinelinux.org/alpine/v3.21/main nodejs npm sqlite-libs
node -v
npm -v

Expand Down
Loading
Loading