Merge branch 'main' into develop #187
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: Validación formas SHACL | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - 'shacl/**/*.ttl' | |
| - 'examples/**/*.rdf' | |
| - 'examples/**/*.ttl' | |
| - 'docs/index.md' | |
| - 'tools/docker-pyshacl/**' | |
| - 'tests/test.ini' | |
| - '.github/workflows/validate-shacl.yml' | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - 'shacl/**/*.ttl' | |
| - 'examples/**/*.rdf' | |
| - 'examples/**/*.ttl' | |
| - 'docs/index.md' | |
| - 'tools/docker-pyshacl/**' | |
| - 'tests/test.ini' | |
| - '.github/workflows/validate-shacl.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate-dcat-ap-es: | |
| name: Validación formas SHACL DCAT-AP-ES (Todas las Fases) | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' || github.event.pull_request == null | |
| steps: | |
| - name: Comprobar repositorio | |
| uses: actions/checkout@v6 | |
| - name: Ejecutar validación de formas SHACL DCAT-AP-ES | |
| id: validate | |
| continue-on-error: true | |
| run: | | |
| chmod +x tests/validate-local.sh | |
| ./tests/validate-local.sh all | |
| echo "exit_code=$?" >> $GITHUB_OUTPUT | |
| - name: Guardar número de PR | |
| if: github.event_name == 'pull_request' | |
| run: echo "${{ github.event.pull_request.number }}" > tests/validation-reports/PR_NUMBER.txt | |
| - name: Subir informes de validación | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dcat-ap-es-validation-reports | |
| path: tests/validation-reports/ | |
| retention-days: 30 | |
| - name: Comprobar resultado de la validación | |
| run: | | |
| EXIT_CODE="${{ steps.validate.outputs.exit_code }}" | |
| if [ "$EXIT_CODE" != "0" ]; then | |
| echo "❌ Validación fallida, revisa los artefactos con los informes. Código de salida: $EXIT_CODE" | |
| exit 1 | |
| fi | |
| echo "✅ Validación completada con éxito." |