overcooking the types on mod-dev if you tell me they are still bad I swear to god i will live in your walls #121
Workflow file for this run
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: XML Validation | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - stable | |
| workflow_dispatch: | |
| jobs: | |
| validate-xml: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install xmllint | |
| run: sudo apt-get update && sudo apt-get install -y libxml2-utils | |
| - name: Validate XML against XSD | |
| run: | | |
| errors=0 | |
| while IFS= read -r -d '' file; do | |
| # echo "Validating $file" | |
| if ! xmllint --noout "$file"; then | |
| echo "Error in $file" | |
| errors=$((errors + 1)) | |
| fi | |
| done < <(find . -name "*.sbc" -print0) | |
| if [ "$errors" -ne 0 ]; then | |
| echo "$errors SBC files failed validation" | |
| exit 1 | |
| else | |
| echo "All SBC files validated successfully" | |
| fi |