From 9791d567e9e1e10488102428a8bdc66d70a08995 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 22 Oct 2026 17:30:39 +0100 Subject: [PATCH] Upload files to ".gitea/workflows" --- .gitea/workflows/test.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..07c5e35 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,39 @@ +name: Compose tests + +on: + push: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Validate Compose and regression tests + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Check out source + uses: https://github.com/actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + persist-credentials: false + - name: Set up Python + uses: https://github.com/actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + with: + python-version: '3.13.9' + - name: Install checksum-pinned Compose CLI (no daemon required) + shell: bash + run: | + set -euo pipefail + test "$(uname -m)" = x86_64 + mkdir -p "$RUNNER_TEMP/compose-cli" + curl --fail --silent --show-error --location --retry 3 --proto '=https' --tlsv1.2 https://github.com/docker/compose/releases/download/v5.6.1/docker-compose-linux-x86_64 -o "$RUNNER_TEMP/compose-cli/docker-compose" + echo "47737f4236e6d3ccea7291995203f8f018058783b4c3a9469119811a0b5db8c0 $RUNNER_TEMP/compose-cli/docker-compose" | sha256sum --check --strict + chmod 755 "$RUNNER_TEMP/compose-cli/docker-compose" + echo "COMPOSE_BINARY=$RUNNER_TEMP/compose-cli/docker-compose" >> "$GITHUB_ENV" + - name: Run offline configuration tests + shell: bash + run: | + set -euo pipefail + env -i PATH="$PATH" HOME="$RUNNER_TEMP" COMPOSE_BINARY="$COMPOSE_BINARY" python scripts/test_compose.py