Update vercel-api submodule: add badge endpoint for GitHub shields #16
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: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js (optional) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies (if package.json exists) | |
| run: | | |
| if [ -f package.json ]; then npm ci; else echo "No package.json, skipping npm install"; fi | |
| - name: Build (if available) | |
| run: | | |
| if [ -f package.json ] && npm run | grep -q 'build'; then npm run build; else echo "No build step defined"; fi | |
| - name: Basic validation | |
| run: | | |
| echo "CI completed" |