Add GitHub Actions workflow for syntax validation #1
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: Validate GitHub Workflow Syntax | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - ".github/**" | ||
| jobs: | ||
| validate: | ||
| name: Lint Workflow Files | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Install Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: "stable" | ||
| - name: Install actionlint | ||
| run: | | ||
| echo "⬇️ Installing actionlint..." | ||
| go install github.com/rhysd/actionlint/cmd/actionlint@latest | ||
| - name: Run actionlint | ||
| run: | | ||
| echo "🔍 Validating GitHub workflow syntax..." | ||
| ~/go/bin/actionlint | ||