15 lines
541 B
Python
15 lines
541 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
WORKFLOW = ROOT / ".gitea" / "workflows" / "managed-validation.yml"
|
|
|
|
|
|
def test_managed_validation_uses_private_https_gitea_checkout_path() -> None:
|
|
workflow = WORKFLOW.read_text(encoding="utf-8")
|
|
|
|
assert "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" in workflow
|
|
assert "github-server-url: https://gitea.example.com" in workflow
|
|
assert "github-server-url: http://gitea-runner-internal:3000" not in workflow
|