feat: shareable credential URLs + domain certificates #4
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: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Run Scoring Engine Tests | |
| run: node tests/scoring.test.js | |
| - name: Run Challenge Registry Validation | |
| run: node tests/challenges.test.js | |
| - name: Check JS Syntax | |
| run: node --check js/app.js | |
| - name: Check HTML Syntax | |
| run: | | |
| # Basic well-formedness check via xmllint if available, otherwise skip | |
| if command -v xmllint &> /dev/null; then | |
| xmllint --html --noout index.html 2>/dev/null || true | |
| else | |
| echo "xmllint not available, skipping HTML lint" | |
| fi |