fixed sdm file #7
This file contains 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 Turtle Files | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Raptor2 for Turtle validation | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y raptor2-utils | |
- name: Find and validate Turtle files | |
run: | | |
cd vocab | |
find . -name "*.ttl" -exec rapper -i turtle -c {} \; > validation.log 2>&1 | |
cat validation.log # Display the contents of the log in the GitHub Actions console | |
continue-on-error: true # Ensure workflow doesn't stop immediately on failure | |
- name: Upload validation log if errors occur | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: validation-log | |
path: validation.log | |