From e9fdf4f4a0dee2d9bf2349988b4113928deb579f Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Fri, 2 Oct 2026 20:44:27 +0200 Subject: [PATCH] fix(ci): install Linux beta build dependencies Closes #1383 --- .github/workflows/tests.yml | 41 ++++++++++++++++++++++++++++++++++++- CHANGELOG.md | 1 + 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2237ea03f..60fbb7d2e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,6 +41,18 @@ jobs: with: fetch-depth: 1 + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version: '1.25' + cache: false + + - name: Install standalone build optimizer + shell: bash + run: | + echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + go install mvdan.cc/sh/v3/cmd/shfmt@v3.13.1 + - name: Setup Config run: cp .env.example .env @@ -79,6 +91,18 @@ jobs: sudo apt-get install -y locales "${{ matrix.language_pack }}" sudo locale-gen "${{ matrix.lang }}" + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version: '1.25' + cache: false + + - name: Install standalone build optimizer + shell: bash + run: | + echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + go install mvdan.cc/sh/v3/cmd/shfmt@v3.13.1 + - name: Setup Config run: cp .env.example .env @@ -231,12 +255,27 @@ jobs: with: fetch-depth: 1 + - name: Set up Go + uses: actions/setup-go@v7 + with: + go-version: '1.25' + cache: false + + - name: Install standalone build optimizer + shell: bash + run: | + echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + CGO_ENABLED=0 go install mvdan.cc/sh/v3/cmd/shfmt@v3.13.1 + - name: Setup Config run: cp .env.example .env - name: Run Tests run: | - docker run --rm -v "$(pwd)":/project alpine:latest /bin/sh -c " \ + docker run --rm \ + -v "$(pwd)":/project \ + -v "$(go env GOPATH)/bin/shfmt":/usr/local/bin/shfmt:ro \ + alpine:latest /bin/sh -c " \ apk update && \ apk add --no-cache bash make git jq && \ adduser -D builder && \ diff --git a/CHANGELOG.md b/CHANGELOG.md index a0d2278fb..353b7da9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - JSON reports write ordinary filenames, test names and empty messages without per-field processes, preserving existing escaping (#1369) ### Fixed +- Linux test jobs install the standalone build optimizer required by beta installer acceptance tests (#1383) - A late timeout signal no longer interrupts `tear_down`; hanging cleanup remains bounded by the watchdog (#1376) - Piped parallel output no longer waits for an inactive spinner's sleep process (#1368)