Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/compliance-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Compliance Validation

on:
pull_request:
push:
branches:
- main

jobs:
validate-catalog:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Run compliance validation
run: python scripts/validate/validate_catalog.py data/catalog/imported-games.json --report-path data/reports/compliance-report.md
1 change: 1 addition & 0 deletions data/catalog/imported-games.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
15 changes: 15 additions & 0 deletions data/reports/compliance-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Compliance Report

Generated at: 2026-04-22 05:00:53Z

## Summary

| Metric | Value |
| --- | ---: |
| Total entries scanned | 0 |
| Total issues | 0 |
| Blocked entries | 0 |

## Issues

No compliance issues found.
23 changes: 23 additions & 0 deletions scripts/validate/build_catalog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
"""Catalog build wrapper that runs compliance validation and emits a report."""

from __future__ import annotations

import subprocess
import sys
from pathlib import Path


def main() -> int:
repo_root = Path(__file__).resolve().parents[2]
validator = repo_root / "scripts" / "validate" / "validate_catalog.py"
catalog = repo_root / "data" / "catalog" / "imported-games.json"
report = repo_root / "data" / "reports" / "compliance-report.md"

cmd = [sys.executable, str(validator), str(catalog), "--report-path", str(report)]
proc = subprocess.run(cmd, cwd=repo_root)
return proc.returncode


if __name__ == "__main__":
raise SystemExit(main())
Loading
Loading