Skip to content

Validate

Validate #3090

Workflow file for this run

name: Validate
# Read-only CI check. Validates that all translation files are structurally
# correct (valid JSON, no type mismatches, no keys absent from or extra compared
# to en.json). Does NOT modify any files.
# Run the cleanup-translations workflow to auto-fix issues and open a PR;
# after that PR is merged this workflow will be green again.
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
hacs_validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: HACS validation
uses: "hacs/action@main"
with:
CATEGORY: "plugin"
language_validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8.x'
- uses: actions/cache@v4
name: Load pip cache
with:
path: ~/.cache/pip
key: language-validate-pip-cache
- name: Install dependencies
run: |
python3 -m pip install colorama setuptools
python3 -m pip install pyicu
- name: Language validation
run: |
script -e -c "python3 .github/workflows/check.py"