40 lines
1.6 KiB
YAML
40 lines
1.6 KiB
YAML
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
|