Add installation command (#3)

This commit is contained in:
Pedro Rodrigues
2026-01-21 15:36:33 +00:00
committed by GitHub
parent ea93449304
commit 0666f21a0c
3 changed files with 12 additions and 47 deletions

View File

@@ -1,43 +0,0 @@
name: Postgres Best Practices CI
on:
push:
branches: [main]
paths:
- 'skills/postgres-best-practices/**'
- 'packages/postgres-best-practices-build/**'
pull_request:
paths:
- 'skills/postgres-best-practices/**'
- 'packages/postgres-best-practices-build/**'
jobs:
validate-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
working-directory: packages/postgres-best-practices-build
run: npm install
- name: Validate rule files
working-directory: packages/postgres-best-practices-build
run: npm run validate
- name: Build AGENTS.md
working-directory: packages/postgres-best-practices-build
run: npm run build
- name: Check for uncommitted changes
run: |
if [[ -n $(git status --porcelain skills/postgres-best-practices/AGENTS.md) ]]; then
echo "Error: AGENTS.md is not up to date"
echo "Run 'npm run build' and commit the changes"
git diff skills/postgres-best-practices/AGENTS.md
exit 1
fi