Upload files to ".gitea/workflows"
Compose tests / Validate Compose and regression tests (push) Successful in 10s
Compose tests / Validate Compose and regression tests (push) Successful in 10s
This commit is contained in:
1 parent
dd346932d4
commit
9791d567e9
1 file changed
+39
@@ -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
|
||||
Reference in new issue
Block a user