Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 20 additions & 35 deletions .github/workflows/build-calm-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ on:
paths:
- 'calm-suite/calm-guard/**'
- '.github/workflows/build-calm-guard.yml'
- 'package.json'
- 'package-lock.json'
push:
branches:
- 'main'
- 'release*'
paths:
- 'calm-suite/calm-guard/**'
- '.github/workflows/build-calm-guard.yml'

defaults:
run:
working-directory: calm-suite/calm-guard
- 'package.json'
- 'package-lock.json'

jobs:
lint:
Expand All @@ -31,26 +31,21 @@ jobs:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Install pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
package_json_file: calm-suite/calm-guard/package.json

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 22
cache: pnpm
cache-dependency-path: calm-suite/calm-guard/pnpm-lock.yaml
cache: npm
cache-dependency-path: package-lock.json

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

- name: Lint
run: pnpm lint
run: npm run lint --workspace=calmguard

- name: Typecheck
run: pnpm typecheck
run: npm run typecheck --workspace=calmguard

test:
name: Test
Expand All @@ -60,23 +55,18 @@ jobs:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Install pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
package_json_file: calm-suite/calm-guard/package.json

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 22
cache: pnpm
cache-dependency-path: calm-suite/calm-guard/pnpm-lock.yaml
cache: npm
cache-dependency-path: package-lock.json

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

- name: Run tests
run: pnpm test:run
run: npm run test:run --workspace=calmguard

build:
name: Build
Expand All @@ -88,20 +78,15 @@ jobs:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Install pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
package_json_file: calm-suite/calm-guard/package.json

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 22
cache: pnpm
cache-dependency-path: calm-suite/calm-guard/pnpm-lock.yaml
cache: npm
cache-dependency-path: package-lock.json

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

- name: Build
run: pnpm build
run: npm run build --workspace=calmguard
11 changes: 2 additions & 9 deletions calm-suite/calm-guard/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "docs",
"name": "calmguard-docs",
"version": "0.0.0",
"private": true,
"scripts": {
Expand Down Expand Up @@ -28,14 +28,7 @@
"@docusaurus/module-type-aliases": "3.10.0",
"@docusaurus/tsconfig": "3.10.0",
"@docusaurus/types": "3.10.0",
"typescript": "~5.6.2"
},
"pnpm": {
"overrides": {
"minimatch": ">=3.1.4",
"serialize-javascript": ">=7.0.5",
"lodash-es": ">=4.18.0"
}
"typescript": "^5.6.2"
},
"browserslist": {
"production": [
Expand Down
Loading
Loading