Skip to content
Merged
50 changes: 50 additions & 0 deletions .github/workflows/ci-catalog-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "CI - Catalog: Validate All Workspace Packages"

on:
pull_request:
paths:
- pnpm-workspace.yaml
- pnpm-lock.yaml
- .github/workflows/ci-catalog-validation.yml
Comment thread
SnowboardTechie marked this conversation as resolved.
workflow_dispatch:

jobs:
validate-workspace:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: "22.x"

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.18.3

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Audit dependencies
# auditConfig.ignoreGhsas in pnpm-workspace.yaml excludes known advisories;
# --audit-level=moderate keeps low-severity findings from blocking CI.
run: pnpm audit --audit-level=moderate

- name: CI — core
run: pnpm run ci:core

- name: CI — changelog-emitter
run: pnpm run ci:changelog-emitter

- name: CI — cli
run: pnpm run ci:cli

- name: CI — sdk
run: pnpm run ci:sdk

- name: CI — website
run: pnpm run ci:website
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ flowchart LR

subgraph website["Website"]
direction LR
HHS/simpler-grants-protocol#330["Create a custom fields catalog 🛠️"]:::InProgress
HHS/simpler-grants-protocol#330["Create a custom fields catalog ️"]:::Done
HHS/simpler-grants-protocol#334["Add mock API playground to CommonGrants.org"]
end

Expand Down
1 change: 1 addition & 0 deletions lib/changelog-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"check:lint": "eslint . --report-unused-disable-directives --max-warnings=0",
"check:types": "tsc --noEmit",
"checks": "pnpm run check:lint && pnpm run check:format && pnpm run check:types",
"ci": "pnpm run checks && pnpm run build && pnpm run test",
"test:coverage": "vitest run --coverage --coverage.reporter=text",
"audit": "pnpm audit"
}
Expand Down
1 change: 1 addition & 0 deletions lib/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"check:format": "prettier --check .",
"check:types": "tsc --noEmit",
"checks": "pnpm run check:lint && pnpm run check:format && pnpm run check:types",
"ci": "pnpm run checks && pnpm run build && pnpm run test",
"audit": "pnpm audit"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions lib/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"check:format": "prettier --check . && tsp format lib --check",
"check:types": "tsc --noEmit",
"checks": "pnpm run check:lint && pnpm run check:format && pnpm run check:types",
"ci": "pnpm run checks && pnpm run build && pnpm run typespec",
"audit": "pnpm audit"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions lib/ts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"check:format": "prettier --check .",
"check:types": "tsc --noEmit",
"checks": "pnpm run check:lint && pnpm run check:format && pnpm run check:types",
"ci": "pnpm run checks && pnpm run build && pnpm run test",
"audit": "pnpm audit",
"typespec": "tsp compile lib/main.tsp",
"example:list": "tsx examples/list-opportunities.ts",
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"ci:core": "pnpm --filter @common-grants/core run ci",
"ci:changelog-emitter": "pnpm --filter typespec-versioning-changelog run ci",
"ci:cli": "pnpm --filter @common-grants/cli run ci",
"ci:sdk": "pnpm --filter @common-grants/sdk run ci",
"ci:website": "pnpm --filter website run ci",
"ci": "pnpm run ci:core && pnpm run ci:changelog-emitter && pnpm run ci:cli && pnpm run ci:sdk && pnpm run ci:website"
},
"keywords": [],
"author": "",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ catalogs:
vitest: ^4.1.2

overrides:
lodash@>=4.0.0 <=4.17.22: '>=4.17.23'
lodash@>=4.0.0 <=4.17.23: '>=4.18.0'
qs@<6.14.2: '>=6.14.2'
yaml@>=2.0.0 <2.8.3: '>=2.8.3'
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"check:spelling": "cspell .",
"check:types": "tsc --noEmit",
"checks": "pnpm check:lint && pnpm check:format && pnpm check:types && pnpm check:astro && pnpm check:spelling",
"ci": "pnpm run build && pnpm run checks && pnpm run test",
"audit:moderate": "pnpm audit --audit-level=moderate",
"audit:high": "pnpm audit --audit-level=high",
"audit:critical": "pnpm audit --audit-level=critical",
Expand Down
Loading