ear: fold Tier-2a eccn: shape keys onto ccl: keys (638 generated equivalences) #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate packs | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install validator dependency | |
| run: pip install pyyaml | |
| - name: Validator self-test (prove the checks can fail) | |
| run: python scripts/validate_pack.py --self-test | |
| - name: Validate all packs | |
| run: python scripts/validate_pack.py --all | |
| - name: Domain validator self-test (prove the checks can fail) | |
| run: python scripts/validate_domain.py --self-test | |
| - name: Validate all domain packs | |
| run: python scripts/validate_domain.py --all | |
| - name: A directory is a base pack or a domain pack, never both | |
| run: | | |
| bad=0 | |
| for manifest in */pack.yaml domains/*/pack.yaml; do | |
| [ -e "$manifest" ] || continue | |
| dir=$(dirname "$manifest") | |
| if [ -f "$dir/domain.yaml" ]; then | |
| echo "::error::'$dir' has both pack.yaml and domain.yaml" | |
| bad=1 | |
| fi | |
| done | |
| exit $bad | |
| - name: Every pack is listed in the catalog README | |
| run: | | |
| missing=0 | |
| for manifest in */pack.yaml; do | |
| pack=$(dirname "$manifest") | |
| if ! grep -q "\`$pack\`" README.md; then | |
| echo "::error::pack '$pack' is missing from the README catalog table" | |
| missing=1 | |
| fi | |
| done | |
| exit $missing | |
| - name: Licensing files present | |
| run: | | |
| test -f LICENSE || { echo "::error::LICENSE missing at repo root"; exit 1; } |